violet17 / yolov5_demo

OpenVINO demo & Convert to OpenVINO IR ==完整又详细的Pytorch到OpenVINO转换流程 ><不点进来看看吗
Apache License 2.0
95 stars 32 forks source link

yolov5_demo_OV2021.3.py Error by openvino2022.1 #14

Open biyuehuang opened 2 years ago

biyuehuang commented 2 years ago

mo --input_model yolov5s.onnx --data_type FP16 --reverse_input_channels --output Conv_238,Conv_218,Conv_198 --batch 1

python yolov5_demo_OV2021.3.py -i people.png -m yolov5s.xml

[ INFO ] Creating Inference Engine... [ INFO ] Loading network: yolov5s.xml [ INFO ] Preparing inputs [ERROR:0@0.004] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1108) open Could not find decoder for codec_id=61 [ERROR:0@0.004] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1140) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture [ERROR:0@0.461] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): car.png in function 'cv::icvExtractPattern'

[ INFO ] Loading model to the plugin [ INFO ] Starting inference... To close the application, press 'CTRL+C' here or switch to the output window and press ESC key To switch between sync/async modes, press TAB key in the output window

violet17 commented 2 years ago

It seems that there is something wrong with the input. You can use print to locate the bug.