-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put frozen model in download package #7
Comments
I'm working on dockerizing all of this and making it into an api so you can sent a POST with any messages you want to test. I've still got a few bugs to work out, but can you let me know any other difficulties or challenges you've faced? Are you looking, at least initially, to train or just use the model? And yes, the model is hit or miss when downloading. |
Thank you, I am trying to deploy this model on mobile platform via Alibaba's MNN Github link MNN has it's own model format, it provides a convertor to import models in other format, as for TensorFlow, this convertor only accepts frozen format. I wrote many scripts to freeze the model first but couldn't get through. So I am wondering if you can provide model in frozen format as well. |
Hey all, sorry was OOO so just getting to this now
So just to confirm, the pb in The repo does have all code for training the model so you can initialise it, restore the checkpoint and then freeze it as you wish - code for initialising is here and then
Curious what issues you're running into? We've deployed the internal version of the model on our inhouse infra (so it's not 1:1 the same) but it should be relatively straightforward to deploy the OSS version, happy to help with this |
hi @Steeeephen, yeah, the converter only accept frozen model, here is the message: [ERROR] MNNConvert just support tensorflow frozen graph model. Model file is not tf frozen graph model. will try to figure out how to freeze it as you said |
Modified the Just put this in the base directory (where https://gist.github.com/Steeeephen/fff11d5270f0e34f287e8a6afe6979c9 |
just run load_checkpoint_freeze_graph.py and get the frozen model, then converted it to mnn format! the only problem is converted model is about 200M, too big to deploy on mobile, will try to quantize it using MNN compressing tool Thank you so much! |
Niiice glad to hear it 🥳 I added a zip with the frozen model to the bucket and changed the download link on the repo, so the default download should now include the frozen model. Thanks for raising this! |
I am AI newbie struggling to freeze the model but can not make it so far.
It would be very nice to put frozen model in the zipped model package as well.
issue 6
The text was updated successfully, but these errors were encountered: