Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
Exception: Path to the weights doesn't exist or it's a directory
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
在用openvino推理时出现这个问题,不知道什么原因,我已经把.xml和图片都放在同一个路径下了,还是不行
C:\Program Files (x86)\Intel\openvino_2021.1.110\deployment_tools\demo\test_yolox>python openvino_inference.py -m yolox_10.xml -i assets\dog.jpg
[ INFO ] Creating Inference Engine
[ INFO ] Reading the network: yolox_10.xml
Traceback (most recent call last):
File "openvino_inference.py", line 158, in
sys.exit(main())
File "openvino_inference.py", line 89, in main
net = ie.read_network(model=args.model)
File "ie_api.pyx", line 262, in openvino.inference_engine.ie_api.IECore.read_network
File "ie_api.pyx", line 287, in openvino.inference_engine.ie_api.IECore.read_network
Exception: Path to the weights doesn't exist or it's a directory
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 openvino_inference.py, especially line 89 where IECore.read_network is called, and reproduce the command from the issue in the demo/test_yolox directory. Check how the -m yolox_10.xml argument and its associated model files are resolved; done means the sample loads the network without the reported weights-path exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100