onnx / onnx/models

ultraface detect failed

Open
#683 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Ask a Question

D:\code\Models\models\validated\vision\body_analysis\ultraface
PS D:\code\Models\models\validated\vision\body_analysis\ultraface> python .\demo.py -i .\dependencies\3.jpg

Question

Explain your question here.
failed

Further information

Relevant Area (e.g. model usage, backend, best practices, pre-/post- processing, converters):

Is this issue related to a specific model?
**Model name: ../ultraface/models/version-RFB-320.onnx (e.g. mnist):
Model opset (e.g. 7):

PS D:\code\Models\models\validated\vision\body_analysis\ultraface> python .\demo.py -i .\dependencies\3.jpg
Traceback (most recent call last):
File "D:\code\Models\models\validated\vision\body_analysis\ultraface\demo.py", line 18, in
face_detector = ort.InferenceSession(face_detector_onnx)
File "C:\Users\zhangtt35\AppData\Local\Programs\Python\Python39\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "C:\Users\zhangtt35\AppData\Local\Programs\Python\Python39\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 480, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from ../ultraface/models/version-RFB-320.onnx failed:Protobuf parsing failed.

Notes

Any additional information, code snippets.

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 command in demo.py with dependencies/3.jpg and inspect the referenced models/version-RFB-320.onnx path. Trace the InferenceSession setup and determine why the model cannot be parsed; the issue is done when the documented demo loads the model successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.