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

Tood's onnx file request #19

Open
hjfdsssdg opened this issue Oct 31, 2022 · 3 comments
Open

Tood's onnx file request #19

hjfdsssdg opened this issue Oct 31, 2022 · 3 comments

Comments

@hjfdsssdg
Copy link

Hello, I was not able to export the onnx file successfully using mmdet.Is there a Tood onnx file available? I would like to further visualize the network structure for learning, thank you!

@fcjian
Copy link
Owner

fcjian commented Nov 14, 2022

@hjfdsssdg Sorry, we have not exported the onnx file.

@hjfdsssdg
Copy link
Author

@fcjian Okay, thank you for your reply!

@davyx8
Copy link

davyx8 commented Feb 16, 2023

did anyone manage to export to ONNX? im getting :
Traceback (most recent call last): File "tools/deployment/pytorch2onnx.py", line 319, in <module> pytorch2onnx( File "tools/deployment/pytorch2onnx.py", line 42, in pytorch2onnx torch.onnx.export( File "/opt/conda/lib/python3.8/site-packages/torch/onnx/__init__.py", line 332, in export return utils.export(model, args, f, export_params, verbose, training, File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 113, in export _export(model, args, f, export_params, verbose, training, input_names, output_names, File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 769, in _export _model_to_graph(model, args, verbose, input_names, File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 515, in _model_to_graph graph = _optimize_graph(graph, operator_export_type, File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 230, in _optimize_graph graph = torch._C._jit_pass_onnx(graph, operator_export_type) File "/opt/conda/lib/python3.8/site-packages/torch/onnx/__init__.py", line 386, in _run_symbolic_method return utils._run_symbolic_method(*args, **kwargs) File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 899, in _run_symbolic_method return symbolic_fn(g, *args) File "/opt/conda/lib/python3.8/site-packages/mmcv/ops/deform_conv.py", line 36, in symbolic return g.op( File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 1005, in _graph_op n = g.insertNode(_newNode(g, opname, outputs, *args, **kwargs)) File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 958, in _newNode _add_attribute(n, k, v, aten=aten) File "/opt/conda/lib/python3.8/site-packages/torch/onnx/utils.py", line 936, in _add_attribute return getattr(node, kind + "_")(name, value) TypeError: i_(): incompatible function arguments. The following argument types are supported: 1. (self: torch._C.Node, arg0: str, arg1: int) -> torch._C.Node

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

No branches or pull requests

3 participants