Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

Which protobuf format to convert to VINO?

K__Mike
Beginner
90 Views

Hello,

How do I convert a Net to VINO when both .pb and pbtxt format are used to read the net - which of the two best serves ?

 

CODE-

frozen_graph = str("detection/240x180_depth0.75_ssd_mobilenetv1/frozen_inference_graph.pb")

text_graph = str("detection/240x180_depth0.75_ssd_mobilenetv1/graph.pbtxt")

cvNet = cv2.dnn.readNetFromTensorflow(frozen_graph, text_graph)

 

Which of the .pb and pbtxt do I use above as their nodes contents are different?

Regards

0 Kudos
1 Reply
Shubha_R_Intel
Employee
90 Views

Dearest K, Mike:

You can convert a text or binary version of a Tensorflow protobuf (or in the case of binary, meta and checkpoint files) to a frozen protobuf using Tensorflow tools. From Model Optimizer's perspective, it doesn't care as long as the Tensorflow Protobuf you feed in is frozen. In fact mo_tf.py has a switch --input_model_is_text.

Please kindly review the following mo tf doc .

Thanks,

Shubha

 

Reply