-
Notifications
You must be signed in to change notification settings - Fork 517
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
How to convert YOLO NAS .pth output into Tflite. #1153
Comments
The weights in the |
Thank you for you response. I tried to use the net key to get the model weights as below.
but it agian gives a similar runtime error as before
Do let me know if there is any other solution I can try to solve this. Thank you in advance. |
As you can see, the keys pretty much match, and the only difference is adaptive_load_state_dict(model, my_model, strict="no_key_matching") |
Thank you for your response. I did try to run the code above as
but I got another runtime error as below:
|
This looks like an issue with different number of classes. |
Thank you for your response. I tried running the code as in #949 It shows me a runtime error similar to above when I used:
but it seems to run and showed me another runtime error when I changed the number of classes to 3 as below:
Does this mean the model assumes that I only have 3 classes when I had initialised 6 classes during trining the model? |
After we merged #1184 this should be resolved |
💡 Your Question
I was trying to convert the yolo nas output of my custom object detection model from .pth into .tflite by refering to this repo by converting it into ONNX -> TF -> Tflite.
but there seems to be a runtime error when I try to load the model :
I am using google colab to run this code. Do let me know if you have any solution this issue.
Thank you.
Versions
No response
The text was updated successfully, but these errors were encountered: