-
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
Error dumping weights duplicate weight name kernel #8233
Comments
Hi, @VineetKumar02 I apologize for the delayed response and to confirm, May I know which versions of Meanwhile, I see you're trying to convert keras model which you're saving in Thank you for your cooperation and patience. |
Version I used are:
I also tried the method you suggested like having totally unique layer names by also adding the bin name to the layer names. But still i face the same issue. See the images for better understanding: Here is the link to the github repo which has the code along with the error: Kindly help me out with this issue please. I'm running these code in the google colab notebook. I have also attached how my .h5 model files looks like. Maybe it will be usful to find out the issue: |
Hi, @VineetKumar02 I apologize for the delay in my response. I'm attempting to replicate the behavior you achieved in your Google Colab notebook. However, after running the preprocessing section code, I'm encountering For your reference, you can find the relevant Google Colab code snippet here: gist-file. I've carefully reviewed the code and ensured I'm using the same version as yours. However, I'm still unable to replicate the expected behavior. Could there be any additional steps or considerations I might be missing? Thank you for your cooperation and patience. |
I'm not sure on why you are facing that issue. But i was able to find a temperory solution for this problem. When I install the tensorflowjs package in colab, it's also installing tensorflow 2.16.1 which is causing the issue. So the workround that i found was to install the tensorflowjs first and thn force install tensorflow 2.15.0, then I was able to convert without any issue. You can see the gist file below: The model saved using tensorflow 2.15.0 looks like this: So i think the issue is with the latest version of tensorflow, you can refer how the model looks when it is saved using the latest version in my previous comment |
Hi, @VineetKumar02 My bad there was some issue with I'm able to replicate the previous issue also with latest version of If you are no longer experiencing problems after downgrading TensorFlow version to Thank you for your cooperation and patience. |
I can't downgrade because I get another error WARNING:root:TensorFlow Decision Forests 1.9.0 is compatible with the following TensorFlow Versions: ['2.16.1']. However, TensorFlow 2.15.0 was detected. This can cause issues with the TF API and symbols in the custom C++ ops. See the TF and TF-DF compatibility table at https://github.com/tensorflow/decision-forests/blob/main/documentation/known_issues.md#compatibility-table. WARNING:root:Failure to load the inference.so custom c++ tensorflow ops. This error is likely caused the version of TensorFlow and TensorFlow Decision Forests are not compatible. Full error:/usr/local/lib/python3.10/dist-packages/tensorflow_decision_forests/tensorflow/ops/inference/inference.so: undefined symbol: _ZN10tensorflow20OpKernelConstruction21CtxFailureWithWarningEPKciRKN4absl12lts_202308026StatusE File "/usr/local/lib/python3.10/dist-packages/tensorflowjs/init.py", line 21, in |
@turbobuilt . Are you using google colab or running on your local system? |
i'm having this error too. File "/Users/muhammadyekini/Downloads/Muhammad_Yekini/CNN Image detection/venv/lib/python3.11/site-packages/tensorflowjs/write_weights.py", line 118, in write_weights |
I tried both ways to convert my keras model to tensorflowjs model. The error looks like this:
![image](https://private-user-images.githubusercontent.com/84562170/320281929-e394bb86-b1bc-4c0e-bd2f-3922129b4a6d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MjQ0OTUsIm5iZiI6MTcyMTYyNDE5NSwicGF0aCI6Ii84NDU2MjE3MC8zMjAyODE5MjktZTM5NGJiODYtYjFiYy00YzBlLWJkMmYtMzkyMjEyOWI0YTZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA0NTYzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1NTcwZTRmNmI1MDQyNTc4MTJjNDVkNzA5OTY3YzU0M2JmNmRhNDMyNmQwMDk4OGJiZWVhOTQ1MmE5MjJiZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BcN2IRynAuTdTfJzWCkIG_YU5LmbK41xfRK9HkZwwaw)
![image](https://private-user-images.githubusercontent.com/84562170/320281958-70c991fb-5fc4-45d2-bbd5-5b9b13c9d3d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MjQ0OTUsIm5iZiI6MTcyMTYyNDE5NSwicGF0aCI6Ii84NDU2MjE3MC8zMjAyODE5NTgtNzBjOTkxZmItNWZjNC00NWQyLWJiZDUtNWI5YjEzYzlkM2Q0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA0NTYzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwMGQ0YWJkM2RkYmVmMDY1YzMyYjY1ZGI0OThhNmI0NTQ4MGYwNDI3OGYzMTg3NzJjMTBjNDQwM2I1ZWMwMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.S8NEUqXdTn3qu2dJ7_LiHxNEoUTycWRQN_C-Vj-u1cs)
ANY IDEA HOW TO RESOLVE THIS ISSUE!!?
For questions on how to work with TensorFlow.js, or support for problems that are not verified bugs in TensorFlow.js, please go to StackOverflow.
The text was updated successfully, but these errors were encountered: