-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
doc: add link how to convert model to tfjs #298
Conversation
Hi @serv-inc, thanks for sending the pull request that references https://stackoverflow.com/a/56084489/1587329 from retrain.py. If I understood correctly, it asks to use an older version of TFJS to do conversion from a frozen graph pb file. However, retrain.py is also capable of exporting to SavedModel. Can that be used? |
Hi @arnoegw. If you know how to do this, feel welcome to respond to either tensorflow/tfjs#1576 or https://stackoverflow.com/questions/55849309/retrain-image-detection-with-mobilenet/56084489#56084489, I would gladly write it then. Otherwise, give me some time to check it out. |
Ok, it seems like the commands
produce a |
Thanks for confirming that it works with current TFJS via SavedModel! I thought it should, but I didn't really know. And thanks for posting it on StackOverflow as well. With that clarification, what would you like to do with this pull request? There's some wisdom to be captured here, but I'm shy to add an official statement on TFJS support for retrain.py, because the TF Hub team seeks to replace it for TF2 by the much more modern tf2_image_retraining.ipynb. We don't want to keep looking after interoperability between retrain.py and TFJS. How about adding general advice like:
? |
Everyone would be happy if the hub-based retraining could be converted to TFJS. It seems like the saved model at least requires some tags for this.
That sounds very good. Would it be ok to add a link to SO for further information as well? Like: For deployment to other environments, |
as proposed by @arnoegw
I had not tested loading the models until now. Both ways of creating fail when loaded with
so this pull request should definitely not be merged as of now. |
No description provided.