-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
I want to convert to onnx #896
Comments
I trained the demo code and I got the .pth file. Now I wanna transform the .pth file to onnx by "torch.onnx.export" function, but got the error below. TypeError: forward() missing 3 required positional arguments: 'im_info', 'gt_boxes', and 'num_boxes' Did u ever met it? Or Do u know how to fix it? Thanks a lot! |
I didn't met ur error and I don't know why. Sorry. |
I solve this problem. ONNX need the input and output both the tensor, so you can transfer these. However, it will be another error: |
@velonica0 Did you succeed with onnx ? If done could you please share the code here ,Thanking you in advance. |
It has error:
RuntimeError: Only tuples, lists and Variables are supported as JIT inputs/outputs. Dictionaries and strings are also accepted, but their usage is not recommended. Here, received an input of unsupported type: int
Has anyone tried converting to onnx?
The text was updated successfully, but these errors were encountered: