-
Notifications
You must be signed in to change notification settings - Fork 75
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
[nanodet-plus] Conv layer shape wrong #15
Comments
I tried to replace parameter as you comment with replace.json here https://drive.google.com/drive/folders/1bDJw2mJVGirdpO33POvDxrEQx0cTD2HY?usp=sharing Line 149 in 58b0c6b
I simply add "else" case:
It works. |
Thanks for pointing that out. I found the cause of the error in Only the models with opset<=10 seemed to have errors. The number and type of inputs seem to be completely different. Originally, the tool focused on testing models with opset >= 11 and was inadequate for models with opset <= 10.
Therefore, the modifications you suggested would have been fine, but I have made a more generic modification. I have released 1.1.23 and upgrading to the latest package should solve the problem. |
If there is no activity within the next two days, this issue will be closed automatically. |
Fixes: https://github.com/PINTO0309/onnx2tf/releases/tag/1.1.29
|
If there is no activity within the next two days, this issue will be closed automatically. |
Issue Type
Others
onnx2tf version number
1.1.22
Download URL for ONNX
https://drive.google.com/file/d/1HyUDTYSTgS7_Gs29SxUSoxs3irqvIsXM/view?usp=sharing
Parameter Replacement JSON
Description
Running script:
onnx2tf -i nanodet-plus-m_416.onnx -oh5 -k "data"
Issue log:
Question 1: Shape of onnx::Conv_1393 layer must be [58,58,1,1], but in here it is [1,1,58,58]. Any cause from data_format?
Question 2: I set -k "data" but data_format of this layer is NHWC. Correct me if I wrong
3. How:
Firstly, I ran without -k option and get the same issue, I tried to use -k but still the the same
I also check parameter replacement but cant find suitable solution.
4. Why: I wanna convert NanoDet-plus-m model to Keras (h5 format)
5. Resources: Pytorch model from NanoDet model zoo https://github.com/RangiLyu/nanodet
Thank you for your hard working. Your projects are very useful <3
The text was updated successfully, but these errors were encountered: