Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

its about running this #56

Open
Rimsha7777 opened this issue Oct 5, 2019 · 5 comments
Open

its about running this #56

Rimsha7777 opened this issue Oct 5, 2019 · 5 comments

Comments

@Rimsha7777
Copy link

[Required] Your device (RaspberryPi3, LaptopPC, or other device name):

[Required] Your device's CPU architecture (armv7l, x86_64, or other architecture name):

[Required] Your OS (Raspbian, Ubuntu1604, or other os name):

[Required] Overview of problems and questions:

can you help me how i can generate .bin and .xml files. I am just new to using NCS2. I wanted to run using PRI3+. If you help me what I have to do with model optimizer exactly with command-line-arguments, I am not getting that I just visited other issues find some with this but did not get how to do.



@PINTO0309
Copy link
Owner

@Rimsha7777
Just execute the commands listed in the following file in order from the top.
https://github.com/PINTO0309/OpenVINO-YoloV3/blob/master/script.txt

python3 convert_weights_pb.py \
--class_names coco.names \
--weights_file weights/yolov3-tiny.weights \
--data_format NHWC \
--tiny \
--output_graph pbmodels/frozen_tiny_yolo_v3.pb
sudo python3 /opt/intel/openvino/deployment_tools/model_optimizer/mo_tf.py \
--input_model pbmodels/frozen_tiny_yolo_v3.pb \
--output_dir lrmodels/tiny-YoloV3/FP16 \
--data_type FP16 \
--batch 1 \
--tensorflow_use_custom_operations_config yolo_v3_tiny_changed.json
python3 openvino_yolov3_test.py -d MYRIAD

@Rimsha7777
Copy link
Author

Rimsha7777 commented Oct 5, 2019 via email

@Rimsha7777
Copy link
Author

Hi,
I can't find model_optimzer directory in development_tool in openvino(release is 2019). Do I need to download it externally?

@PINTO0309
Copy link
Owner

The OpenVINO installer for RaspberryPi does not include a model optimizer. So if you want to convert the model, you need a HostPC with the full version of OpenVINO installed.

HostPC ex) Ubuntu
First, download the latest OpenVINO from the following. And, install.
https://github.com/PINTO0309/OpenVINO-bin.git

Next, execute the following command on HostPC.

python3 convert_weights_pb.py \
--class_names coco.names \
--weights_file weights/yolov3-tiny.weights \
--data_format NHWC \
--tiny \
--output_graph pbmodels/frozen_tiny_yolo_v3.pb
sudo python3 /opt/intel/openvino/deployment_tools/model_optimizer/mo_tf.py \
--input_model pbmodels/frozen_tiny_yolo_v3.pb \
--output_dir lrmodels/tiny-YoloV3/FP16 \
--data_type FP16 \
--batch 1 \
--tensorflow_use_custom_operations_config yolo_v3_tiny_changed.json

Next, copy the .bin and .xml generated on HostPC to RaspberryPi.

@Rimsha7777
Copy link
Author

Rimsha7777 commented Oct 6, 2019 via email

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

2 participants