-
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
tensorflowjs_converter on .keras file messes up weights #8266
Comments
Hi, @smidm I apologize for the delayed response and as far I know the TensorFlow.js converter currently does not support converting Keras models saved in the new format Meanwhile, as an alternative approach, could you explore exporting the model directly to TensorFlow.js Layers format using the Python API? This would allow us to compare the weights of the original Python model and the converted model. I'll discuss this issue within our internal meeting and will update you soon. thank you for bringing this issue to our attention, I really appreciate your efforts and valuable time.
Thank you for your cooperation and patience. |
Thanks for the alternative approach. I have already figured out, before submitting the issue, but it took some time. IMO the |
Hi, @smidm Thank you for your suggestion regarding to add a link https://github.com/tensorflow/tfjs/tree/master/tfjs-converter to I will be sure to share your feedback during our next internal meeting. The team will discuss it and take appropriate action if necessary. If your issue has been resolved, please feel free to close this issue. Thank you for your cooperation and patience. |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
System information
Describe the current behavior
.keras
saved model after being converted totfjs_graph_model
format usingtensorflowjs_converter
has different weight values when loaded using tensorflow.js.create a dummy model:
output:
convert to
tfjs_graph_model
format:output:
load model in JS:
output:
Describe the expected behavior
The weights of the python model and the model loaded in JS should be the same or should
tensorflowjs_converter
end with an error if.keras
model format is not supported #8229 (comment) .Standalone code to reproduce the issue
.keras model,
tfjs_graph_model
and sample JS app to load the model: tensorflowjs_converter_issue.zipThe text was updated successfully, but these errors were encountered: