TNTWEN / OpenVINO-YOLOV4

This is implementation of YOLOv4,YOLOv4-relu,YOLOv4-tiny,YOLOv4-tiny-3l,Scaled-YOLOv4 and INT8 Quantization in OpenVINO2021.3
MIT License
240 stars 66 forks source link

run object_detection_demo_yolov3_async.py throw exception(ZeroDivisionError: division by zero) #27

Open youngerong opened 3 years ago

youngerong commented 3 years ago

python object_detection_demo_yolov3_async.py -i D://bike.avi -m frozen_darknet_yolov4_model.xml -d CPU

(tf1.x) C:\Users\10048720\Downloads\OpenVINO-YOLOV4-master>python object_detecti on_demo_yolov3_async.py -i D://bike.avi -m frozen_darknet_yolov4_model.xml -d C PU [ INFO ] Creating Inference Engine... [ INFO ] Loading network [ INFO ] Preparing inputs MFX: Can't initialize session [ WARN:0] global C:\jenkins\workspace\OpenCV\OpenVINO\2020.4\build\windows\openc v\modules\videoio\src\cap_msmf.cpp (682) CvCapture_MSMF::initStream Failed to se t mediaType (stream 0, (320x240 @ 15) MFVideoFormat_RGB24(unsupported media type ) [ 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 min_latency/user_specified modes, press TAB key in the output window [ INFO ] [ INFO ] Mode: USER_SPECIFIED [ INFO ] FPS: 0.0 Traceback (most recent call last): File "object_detection_demo_yolov3_async.py", line 518, in CreateFile() Error: 2 sys.exit(main() or 0) File "object_detection_demo_yolov3_async.py", line 510, in main CreateFile() Error: 2 mode_info[mode_value].frames_count) * 1e3)) ZeroDivisionError: division by zero

TNTWEN commented 3 years ago

@youngerong This error generally occurs when there is an error in the model conversion

You can check whether your weight file is used correctly and whether the classes is set correctly

Two places involve the classes setting