-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
tfjs converter - not sure succesful or not #8375
Comments
Hi @nurulaqilah2207, Currently,
Please let me know if this troubleshooting step resolves your issue with converting your Thank You!! |
Hi @shmishra99 , this is link to my .h5 file file |
Hi @nurulaqilah2207 , I apologize for the delay in my response. I am able to convert the Steps:
This will give you the following output: Let me know if it is resolving your issue. Thank You. |
hi @shmishra99, Thank you for your help! I've tried again and able to convert the model. |
Hi @nurulaqilah2207 , You can convert models saved with TensorFlow 2.16 or higher or Keras 3. However, models saved with tensorFlow 2.16 does not save the expected input size. So, you cannot load the converted model as a layer model. You must load it as a graph model. Thank You!! |
Okay, understand on that. Thank you so much for your help and response. |
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
Describe the problem
I want to convert my .h5 model to .js . Then, I get this output:
failed to lookup keras version from the file,
this is likely a weight only file
I do see there is a new folder consist of model.js and several .bin files. But I am not sure when I deploy the model, will it have any issue.
Provide the exact sequence of commands / steps that you executed before running into the problem
!tensorflowjs_converter --input_format=keras --output_format=tfjs_layers_model /home/usr/model_densenet121_2.h5 /home/usr/tfjs_model
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: