ali@ali-VirtualBox:~/Documents/ncs2_raspberry_object_detection$ python3 ~/intel/openvino/deployment_tools/model_optimizer/mo_tf.py --input_model ~/Documents/models/faster_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb --model_name RCNN_Model_1 --output_dir ~/Documents/RCNN_Model_1 --tensorflow_use_custom_operations_config /opt/intel/openvino/deployment_tools/model_optimizer/extensions/front/tf/faster_rcnn_support.json --tensorflow_object_detection_api_pipeline_config ~/Documents/models/faster_rcnn_inception_v2_coco_2018_01_28/pipeline.config --output=detection_boxes,detection_scores,num_detections --reverse_input_channels [ WARNING ] Use of deprecated cli option --tensorflow_use_custom_operations_config detected. Option use in the following releases will be fatal. Please use --transformations_config cli option instead Model Optimizer arguments: Common parameters: - Path to the Input Model: /home/ali/Documents/models/faster_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb - Path for generated IR: /home/ali/Documents/RCNN_Model_1 - IR output name: RCNN_Model_1 - Log level: ERROR - Batch: Not specified, inherited from the model - Input layers: Not specified, inherited from the model - Output layers: detection_boxes,detection_scores,num_detections - Input shapes: Not specified, inherited from the model - Mean values: Not specified - Scale values: Not specified - Scale factor: Not specified - Precision of IR: FP32 - Enable fusing: True - Enable grouped convolutions fusing: True - Move mean values to preprocess section: False - Reverse input channels: True TensorFlow specific parameters: - Input model in text protobuf format: False - Path to model dump for TensorBoard: None - List of shared libraries with TensorFlow custom layers implementation: None - Update the configuration file with input/output node names: None - Use configuration file used to generate the model with Object Detection API: /home/ali/Documents/models/faster_rcnn_inception_v2_coco_2018_01_28/pipeline.config - Operations to offload: None - Patterns to offload: None - Use the config file: /opt/intel/openvino/deployment_tools/model_optimizer/extensions/front/tf/faster_rcnn_support.json Model Optimizer version: 2020.1.0-61-gd349c3ba4a [ WARNING ] Model Optimizer removes pre-processing block of the model which resizes image keeping aspect ratio. The Inference Engine does not support dynamic image size so the Intermediate Representation file is generated with the input image size of a fixed size. Specify the "--input_shape" command line parameter to override the default shape which is equal to (600, 600). The Preprocessor block has been removed. Only nodes performing mean value subtraction and scaling (if applicable) are kept. The graph output nodes "num_detections", "detection_boxes", "detection_classes", "detection_scores" have been replaced with a single layer of type "Detection Output". Refer to IR catalogue in the documentation for information about this layer. [ WARNING ] Network has 2 inputs overall, but only 1 of them are suitable for input channels reversing. Suitable for input channel reversing inputs are 4-dimensional with 3 channels All inputs: {'image_tensor': [1, 3, 600, 600], 'image_info': [1, 3]} Suitable inputs {'image_tensor': [1, 3, 600, 600]} [ SUCCESS ] Generated IR version 10 model. [ SUCCESS ] XML file: /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.xml [ SUCCESS ] BIN file: /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.bin [ SUCCESS ] Total execution time: 182.93 seconds. [ SUCCESS ] Memory consumed: 550 MB. ali@ali-VirtualBox:~/Documents/ncs2_raspberry_object_detection$ python3 object_detection_sample_ssd.py --m ~/Documents/RCNN_Model_1/RCNN_Model_1.xml --labels labels.txt --i 808713.jpg --d MYRIADobject_detection_sample_ssd.py:159: SyntaxWarning: name 'confidence' is assigned to before global declaration global confidence /usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.7 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.5 return f(*args, **kwds) [ INFO ] Loading network files: /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.xml /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.bin [ INFO ] Loading Inference Engine [ INFO ] Device info: MYRIAD MKLDNNPlugin version ......... 2.1 Build ........... 37988 [ INFO ] File was added: [ INFO ] 808713.jpg [ WARNING ] Image 808713.jpg is resized from (600, 600) to (600, 600) [ INFO ] Preparing input blobs [ INFO ] Batch size is 1 [ INFO ] Preparing output blobs [ INFO ] Loading model to the device [ INFO ] Creating infer request and starting inference [ INFO ] Processing output blobs [ INFO ] Execution successful [ INFO ] This sample is an API example, for any performance measurements please use the dedicated benchmark_app tool ali@ali-VirtualBox:~/Documents/ncs2_raspberry_object_detection$ python3 object_detection_sample_ssd.py --m ~/Documents/RCNN_Model_1/RCNN_Model_1.xml --labels labels.txt --i image1.jpg --d MYRIAD object_detection_sample_ssd.py:159: SyntaxWarning: name 'confidence' is assigned to before global declaration global confidence /usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.7 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.5 return f(*args, **kwds) [ INFO ] Loading network files: /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.xml /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.bin [ INFO ] Loading Inference Engine [ INFO ] Device info: MYRIAD MKLDNNPlugin version ......... 2.1 Build ........... 37988 Traceback (most recent call last): File "object_detection_sample_ssd.py", line 192, in sys.exit(main() or 0) File "object_detection_sample_ssd.py", line 84, in main n, c, h, w = net.inputs[input_blob].shape ValueError: not enough values to unpack (expected 4, got 2) ali@ali-VirtualBox:~/Documents/ncs2_raspberry_object_detection$ python3 object_detection_sample_ssd.py --m ~/Documents/RCNN_Model_1/RCNN_Model_1.xml --labels labels.txt --i 808713.jpg --d MYRIAD object_detection_sample_ssd.py:159: SyntaxWarning: name 'confidence' is assigned to before global declaration global confidence /usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.7 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.5 return f(*args, **kwds) [ INFO ] Loading network files: /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.xml /home/ali/Documents/RCNN_Model_1/RCNN_Model_1.bin [ INFO ] Loading Inference Engine [ INFO ] Device info: MYRIAD MKLDNNPlugin version ......... 2.1 Build ........... 37988 Traceback (most recent call last): File "object_detection_sample_ssd.py", line 192, in sys.exit(main() or 0) File "object_detection_sample_ssd.py", line 84, in main n, c, h, w = net.inputs[input_blob].shape ValueError: not enough values to unpack (expected 4, got 2)