Closed eddex closed 5 years ago
I figured out what the issue was.
The conversion of the yolov3-tiny.weights
has to be done with tensorflow <1.13.0 otherwise something goes wrong.
To fix the issue I installed tensorflow 1.12.2
pip3 install tensorflow==1.12.2
And then converted the yolov3-tiny.weights
using the same command as before (see step 2 on the previous comment).
I also added the --data_type
parameter when converting the tensorflow model to the intermediate representation:
python3 mo_tf.py --input_model frozen_darknet_yolov3_model.pb
--tensorflow_use_custom_operations_config yolo_v3_tiny.json
--input_shape [1,416,416,3]
--data_type FP16
Like this the error doesn't show up anymore.
I found this information here: https://software.intel.com/en-us/forums/computer-vision/topic/807383
device: Raspberry Pi 3 B+
CPU architecture: Intel Compute Stick 2 (MYRIAD)
OS: Raspbian Stretch Lite (April 2019)
What I did: 1) Download original
yolov3-tiny.weights
from https://pjreddie.com/media/files/yolov3-tiny.weights 2) Convert yolov3-tiny.weights to tf model:3) Convert tf model to IR:
4) copy
frozen_darknet_yolov3_model.xml
andfrozen_darknet_yolov3_model.bin
to Raspberry Pi 5) runpython3 openvino_tiny-yolov3_test.py -d MYRIAD
on Raspberry PiError message:
Overview of problems and questions: I'm not quite sure what this error means. Is there a difference between the
yolov3-tiny.weights
used in this repository and the original ones? And if so, how can I get theopenvino_tiny-yolov3_test.py
running with the originalyolov3-tiny.weights
?When I use the files from
OpenVINO-YoloV3/lrmodels/tiny-YoloV3/FP16/
, the error doesn't show up.I tried to adapt the
openvino_tiny-yolov3_test.py
by changing thenum = 3
variable tonum = 6
since the original yolov3-tiny.cfg uses this number. But this didn't make a difference.