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

nntool onnx pow ops gives NoneType obj AttributeError #261

Closed
pecanjk opened this issue Aug 6, 2021 · 4 comments
Closed

nntool onnx pow ops gives NoneType obj AttributeError #261

pecanjk opened this issue Aug 6, 2021 · 4 comments

Comments

@pecanjk
Copy link

pecanjk commented Aug 6, 2021

File "/gap_sdk/tools/nntool/importer/onnx/onnx.py", line 54, in create_graph G = self._import_onnx_model(G, model.graph, opset_import, opts) File "/gap_sdk/tools/nntool/importer/onnx/onnx.py", line 68, in _import_onnx_model self._import_nodes(G, graph, handlers, all_nodes, outputs, opts) File "/gap_sdk/tools/nntool/importer/onnx/onnx.py", line 180, in _import_nodes params = handler.handle(OnnxNode(node), all_nodes=all_nodes, vars_dict=vars_dict, File "/gap_sdk/tools/nntool/importer/onnx/handlers/handler.py", line 61, in handle return ver_handle(node, **kwargs) File "/gap_sdk/tools/nntool/importer/onnx/handlers/backend/pow.py", line 44, in version_12 return cls._common(node, **kwargs) File "/gap_sdk/tools/nntool/importer/onnx/handlers/backend/pow.py", line 29, in _common return super(Pow, cls)._common(node, File "/gap_sdk/tools/nntool/importer/onnx/handlers/backend/math_mixin.py", line 76, in _common G.add_edge(NNEdge(from_node=inp[0], to_node=params, from_idx=inp[1], to_idx=idx)) File "/gap_sdk/tools/nntool/utils/graph.py", line 254, in add_edge elif edge.to_node.name not in self._nodes: AttributeError: 'NoneType' object has no attribute 'name' EXCEPTION of type 'AttributeError' occurred with message: ''NoneType' object has no attribute 'name''

@pecanjk
Copy link
Author

pecanjk commented Aug 24, 2021

Is there anyone who met same problems to handle Pow Ops when converting onnx object detection model at head part

@sousoux
Copy link
Contributor

sousoux commented Sep 20, 2021

Any chance that we can have a model that exhibits this problem?

@sousoux sousoux closed this as completed Sep 20, 2021
@pecanjk
Copy link
Author

pecanjk commented Sep 22, 2021

Any chance that we can have a model that exhibits this problem?

please take a look at this model. Thanks.
"https://pan.baidu.com/s/1eIWXtb7uk51moOhIHCkmew"
"verify_code: wx5w"

This model has more problems including 4d transform, pow ops NoneType, resize/reshape and pad. The resize and pad problems fixed in the PR #264. I can not figure out the pow ops NoneType.

@sousoux
Copy link
Contributor

sousoux commented Nov 17, 2021

I was not able to download this file.

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

2 participants