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
Use model in tensorflow.js #7192
Comments
@kasperkamperman |
@kasperkamperman |
This is a good question. I don't actually think anyone on the team has tried to get this to play nice with TensorFlow.js yet.. |
I'm curious if there is any progress already? |
I think there is no need of converting the model into frozen GraphDef because we can use .pb model directly with python |
@ksujanpaul I don't want to use it with Python but with tensorflow.js... (which is javascript, so it's not related to Tensforflow for Python). |
From my research I also understand that there are also different pb files, but I can't find which type Azure Custom Vision exports. I found the tfjs converter. This is to convert a TensorFlow SavedModel (is the *.pb file from Azure a SavedModel?) or Keras model to a web-friendly format. However I need to fill in "output_node_names" (how do I get these?). I'm also not 100% sure if my pb file for Android is equal to a "tf_saved_model". I hope someone has a tip or a starting point. |
@anrothMSFT is there any progress on this issue? |
@anrothMSFT any updates on this? |
Thank you for taking the time to share your product and documentation feedback with us. Your input is valued because it helps us create the right documentation for our customers. Due to the volume of issues in our queue, we are closing open issues older than 90 days. We hope to continue hearing from you. Thank you. |
|
Thanks for bumping this. It has generated a hallway discussion this AM about whether to add TF.js export as an export flavor (we added TF lite last week, although release notes are lagging.) Something for us to keep discussing @harishkrishnav on our team has been playing around with tf.js and might be able to provide some hints in the interim... |
This is a bit tricky as is and we might soon release a sample for how to load Custom Vision models on the browser using TensorFlow.js. These are the steps I did to get an exported TensorFlow model working for me:
Ideally, |
@harishkrishnav It worked! Thank you so much! |
@harishkrishnav Fantastic - do you want to take the SO answer? |
I hope someone could give a hint how to use the model in tensorflow.js. I suppose the .pb is a Frozen GraphDef? There is a converter tool (https://github.com/tensorflow/tfjs-converter) however I miss the "--output_node_names". Exporting directly for tensorflow.js would be even greater of course.
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: