onnx / onnx/models

KeyError: '475' mobilenet imagenet inference notebook

Open
#502 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Jupyter Notebook
Stars
9.8k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "app.py", line 20, in
sym, arg_params, aux_params = import_model('mobilenetv2-7.onnx')
File "/home/user/.local/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_model.py", line 60, in import_model
sym, arg_params, aux_params = graph.from_onnx(model_proto.graph, opset_version=model_opset_version)
File "/home/user/.local/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 116, in from_onnx
inputs = [self._nodes[i] for i in node.input]
File "/home/user/.local/lib/python3.8/site-packages/mxnet/contrib/onnx/onnx2mx/import_onnx.py", line 116, in
inputs = [self._nodes[i] for i in node.input]
KeyError: '475'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the traceback from app.py line 20 with mobilenetv2-7.onnx, then inspect mxnet/contrib/onnx/onnx2mx/import_model.py and import_onnx.py around the reported line 116. Done means the model imports without the KeyError and the ImageNet inference notebook completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.