Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ summary #10

Open
TNTWEN opened this issue Aug 21, 2020 · 0 comments
Open

FAQ summary #10

TNTWEN opened this issue Aug 21, 2020 · 0 comments

Comments

@TNTWEN
Copy link
Owner

TNTWEN commented Aug 21, 2020

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

  • Make sure .names file , JSON file's "classes" are correct
  • Make sure you train your YOLO model correctly
  • If you want to use yolov4-tiny, don‘t forget --tiny when running convert_weights_pb.py

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 640*480 remember to change this line

inputs = tf.placeholder(tf.float32, [None, FLAGS.size, FLAGS.size, 3], "inputs")

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、

"id": "TFYOLOV3",

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
openvinotoolkit/openvino#2925

If you want to use newer OpenVINO version:

  • Use the tensorflow1.x version required when installing OpenVINO
  • This repository provides python inference demo for different OpenVINO version.pythondemo.Choose the right demo before you run object_detection_demo_yolov3_async.py
  • You could also use C++ inference demo provided by OpenVINO.(For example,OpenVINO2021.3 default C++ demo path::C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\open_model_zoo\demos\multi_channel_object_detection_demo_yolov3\cpp))
@TNTWEN TNTWEN pinned this issue Aug 21, 2020
Repository owner locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant