microsoft / microsoft/onnxruntime-inference-examples
Unable to run ONNX Runtime Quantization Example
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 414
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 14
Description
When I follow the tutorial and run command python run.py --input_model mobilenetv2-7-infer.onnx --output_model mobilenetv2-7.quant.onnx --calibrate_dataset ./test_images/, the following error appears.
ValueError: Required inputs (['reshape_attr_tensor421']) are missing from input feed (['data']).
Has anyone encountered the same problem?
env:
colab
onnxruntime 1.15.1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with quantization/image_classification/cpu/ReadMe.md and the run.py command shown in the report, then reproduce it in the stated Colab and ONNX Runtime 1.15.1 environment. Trace why the calibration run supplies only data while reshape_attr_tensor421 is required. Done means the documented command completes without the missing-input ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100