英文:
open model zoo multi_camera_multi_target_tracking_demo
问题
我正在尝试使用测试视频文件运行multi_camera_multi_target_tracking_demo,在Ubuntu上执行以下命令运行演示程序:
$ python3.9 multi_camera_multi_target_tracking_demo.py -i ./test_video/test1.mp4 ./test_video/test1.mp4 --m_detector intel/person-detection-retail-0013.xml --m_reid intel/person-reidentification-retail-0277.xml
但是我遇到了一个错误:
RuntimeError: 在 src/inference/src/core.cpp:100 处检查 'false' 失败:
[ NETWORK_NOT_READ ] 无法读取模型: intel/person-detection-retail-0013.xml,请检查模型格式:xml是否受支持,以及模型是否正确。可用的前端:paddle pytorch tflite tf ir onnx
从我的理解来看,脚本需要使用onnx格式的模型,而我正在使用xml格式的模型。有人可以给我一些建议如何重新下载onnx格式的模型吗?
当我克隆了open model zoo存储库时,我使用了以下命令:omz_downloader --all
和 omz_converter --all
。
英文:
Am trying multi_camera_multi_target_tracking_demo with test video files, running the demo on Ubuntu with:
$ python3.9 multi_camera_multi_target_tracking_demo.py -i ./test_video/test1.mp4 ./test_video/test1.mp4 --m_detector intel/person-detection-retail-0013.xml --m_reid intel/person-reidentification-retail-0277.xml
But I encounter an error:
RuntimeError: Check 'false' failed at src/inference/src/core.cpp:100:
[ NETWORK_NOT_READ ] Unable to read the model: intel/person-detection-retail-0013.xml Please check that model format: xml is supported and the model is correct. Available frontends: paddle pytorch tflite tf ir onnx
From what I understand the script wants onnx format and I am using xml format. Can someone give me a tip on how to redownload onnx format model?
when I cloned the open model zoo repo I used the directions omz_downloader --all
and omz_converter --all
答案1
得分: 0
克隆 Open Model Zoo 2022.3.0 的特定分支,如果你使用的是 OpenVINO 2022.3.0 版本:
git clone --depth 1 -b 2022.3.0 https://github.com/openvinotoolkit/open_model_zoo.git
另外,你可以使用以下命令下载单独的模型:
omz_downloader --name person-detection-retail-0013
omz_downloader --name person-reidentification-retail-0277
英文:
Clone the specific branch for Open Model Zoo 2022.3.0 if you're using OpenVINO 2022.3.0:
git clone --depth 1 -b 2022.3.0 https://github.com/openvinotoolkit/open_model_zoo.git
Additionally, you can download the individual model using the following command:
omz_downloader --name person-detection-retail-0013
omz_downloader --name person-reidentification-retail-0277
答案2
得分: 0
你似乎把模型的路径略有错误,这就是程序找不到它们的原因。
如果你在与Python程序相同的位置运行 omz_downloader --all
,那么模型将被下载到 ./intel/MODEL_NAME/FPXX/MODEL_NAME.[xml,bin]
。
因此,要实际调用正确的模型路径来运行程序,你应该像这样调用它,例如(如果使用FP32版本):
python3.9 multi_camera_multi_target_tracking_demo.py -i ./test_video/test1.mp4 ./test_video/test1.mp4 --m_detector intel/person-detection-retail-0013/FP32/person-detection-retail-0013.xml --m_reid intel/person-reidentification-retail-0277/FP32/person-reidentification-retail-0277.xml
英文:
You seem to have the path of the models slightly wrong, and that's why the program is not finding them.
If you call omz_downloader --all
from the same location of the python program, then the models will be downloaded to ./intel/MODEL_NAME/FPXX/MODEL_NAME.[xml,bin]
.
So, to actually call the program with the correct model paths you should call it like this for example(if using the FP32 version):
python3.9 multi_camera_multi_target_tracking_demo.py -i ./test_video/test1.mp4 ./test_video/test1.mp4 --m_detector intel/person-detection-retail-0013/FP32/person-detection-retail-0013.xml --m_reid intel/person-reidentification-retail-0277/FP32/person-reidentification-retail-0277.xml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论