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
239 stars 66 forks source link

FAQ summary #10

Open TNTWEN opened 4 years ago

TNTWEN commented 4 years ago

1、


[ ERROR ] List of operations that cannot be converted to Inference Engine IR:
........................
[ ERROR ] Part of the nodes was not converted to IR. Stopped.

Be sure to install OpenVINO2020R4!!!

2、 Any reshape array error

3、How to set image size? Default image size is 416*416 For example,if you want to use 608*608 python convert_weights_pb.py --class_names cfg/coco.names --weights_file yolov4.weights --data_format NHWC --size 608

4、 Can i set different height and width? *If you want to use 640480 remember to change this line https://github.com/TNTWEN/OpenVINO-YOLOV4/blob/534cca38d1e3bf95dce98daa216a57f62a2f83ce/convert_weights_pb.py#L38 to inputs = tf.placeholder(tf.float32, [None, 640, 480, 3], "inputs") and run python convert_weights_pb.py --class_names cfg/coco.names --weights_file yolov4.weights --data_format NHWC**

5、How to use custom model? (1) When running convert_weights_pb.py use your .names file

(2) Modify "classes" in yolov4.json

6、why mo.py use --reverse_input_channels? Darknet:pjreddie/darknet#427 Tensorflow(my project is based on mystic123 Tensorflow YOLOV3):mystic123/tensorflow-yolo-v3#2 OpenVINO OpenCV :BGR

7、YOLOV4 .weights download

yolov4 yolov4tiny

8、https://github.com/TNTWEN/OpenVINO-YOLOV4/blob/534cca38d1e3bf95dce98daa216a57f62a2f83ce/yolov4.json#L3 why id is still TFYOLOV3? If we change TFYOLOV3 to TFYOLOV4,errors will happen when running the demo.Like this: Traceback (most recent call last): File "object_detection_demo_yolov3_async.py", line 518, in sys.exit(main() or 0) File "object_detection_demo_yolov3_async.py", line 398, in main args.keep_aspect_ratio) File "object_detection_demo_yolov3_async.py", line 233, in get_objects out_blob = out_blob.buffer.reshape(net.layers[net.layers[layer_name].parents[0]].out_data[0].shape) ValueError: cannot reshape array of size 460275 into shape (1,5415,4) Anyone who knows how to solve this problem could communicate with me

9、C++ demo? i have provided python demo.But you also could use this repos to convert model and run on C++ demo.

10、FP32 ,FP16 The default precision is FP32,if you want to use FP16 ,add --data_type FP16 when you run mo.py

11、OpenVINO version All the inference devices are running normally in OpenVINO2020.4 and 2021.3 But GPU devices have bugs in the new version OpenVINO2021.1,2021.2 which has already been fixed in OpenVINO2021.3 https://github.com/openvinotoolkit/openvino/issues/2925

If you want to use newer OpenVINO version: