Skip to content
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

The problem of conversion from pth format model to onnx model #176

Open
NOBUGW opened this issue Oct 12, 2020 · 3 comments
Open

The problem of conversion from pth format model to onnx model #176

NOBUGW opened this issue Oct 12, 2020 · 3 comments
Labels

Comments

@NOBUGW
Copy link

NOBUGW commented Oct 12, 2020

Hello, I hope there is a problem in the process of converting your pre training model to onnx. Can you help me solve it?
I used:
torch.onnx.export For weights / vgg_ ssd300_ Voc0712.pth,But,The program Display"RuntimeError: Only tuples, lists and Variables supported as JIT inputs/outputs. Dictionaries and strings are also accepted but their usage is not recommended. But got unsupported type Container"

@NOBUGW NOBUGW closed this as completed Oct 13, 2020
@NOBUGW NOBUGW reopened this Oct 13, 2020
@lufficc lufficc added contributions welcome enhancement New feature or request labels Nov 13, 2020
@zcf2020DPL
Copy link

hi,man,have you solved this question? I have the same question.

@zcf2020DPL
Copy link

I have solved the question,and it is not a question, postprocessor has unsupported type Container... no need postprocessor in convert to onnx, so #detections = self.post_processor(detections) in box_head.py

@SamSamhuns
Copy link

SamSamhuns commented Apr 29, 2021

@zcf2020DPL , the onnx conversion can be done including the self.post_processor(detections) call in the box_head.py if the container class is not used in the Postprocessor object in ssd/modeling/box_head/inference.py.

I have created a onnx conversion script for the networks, it works for the mobilenets properly right now. @lufficc , if you check out my pull request now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants