C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer>python mo_tf.py --saved_model_dir export\saved_model --transformations_config extensions\front\tf\ssd_support_api_v2.0.json --tensorflow_object_detection_api_pipeline_config export\pipeline.config Model Optimizer arguments: Common parameters: - Path to the Input Model: None - Path for generated IR: C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\. - IR output name: saved_model - Log level: ERROR - Batch: Not specified, inherited from the model - Input layers: Not specified, inherited from the model - Output layers: Not specified, inherited from the model - 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: None - Reverse input channels: False 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: C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\export\pipeline.config - Use the config file: None [ WARNING ] Could not find the Inference Engine Python API. At this moment, the Inference Engine dependency is not required, but will be required in future releases. [ WARNING ] Consider building the Inference Engine Python API from sources or try to install OpenVINO (TM) Toolkit using "install_prerequisites.sh" Model Optimizer version: 2021.3.0-2787-60059f2c755-releases/2021/3 2021-05-07 14:41:05.788321: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2021-05-07 14:41:05.788538: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2021-05-07 14:41:28.551260: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found 2021-05-07 14:41:28.551504: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303) 2021-05-07 14:41:28.559660: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DESKTOP-B6P1CKK 2021-05-07 14:41:28.560065: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DESKTOP-B6P1CKK 2021-05-07 14:41:28.561886: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-05-07 14:42:41.139044: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2021-05-07 14:42:41.139604: I tensorflow/core/grappler/clusters/single_machine.cc:357] Starting new session 2021-05-07 14:42:43.038348: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:1144] Optimization results for grappler item: graph_to_optimize function_optimizer: Graph size after: 3766 nodes (3357), 8094 edges (7678), time = 359.555ms. function_optimizer: Graph size after: 3766 nodes (0), 8094 edges (0), time = 123.593ms. Optimization results for grappler item: __inference_map_while_cond_7948_32 function_optimizer: function_optimizer did nothing. time = 0.003ms. function_optimizer: function_optimizer did nothing. time = 0.001ms. Optimization results for grappler item: __inference_map_while_body_7949_30932 function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0ms. [ ERROR ] ------------------------------------------------- [ ERROR ] ----------------- INTERNAL ERROR ---------------- [ ERROR ] Unexpected exception happened. [ ERROR ] Please contact Model Optimizer developers and forward the following information: [ ERROR ] Exception occurred during running replacer "ObjectDetectionAPIOutputReplacement ()": 'inputs' [ ERROR ] Traceback (most recent call last): File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\utils\class_registration.py", line 290, in apply_transform for_graph_and_each_sub_graph_recursively(graph, replacer.find_and_replace_pattern) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\middle\pattern_match.py", line 60, in for_graph_and_each_sub_graph_recursively for_each_sub_graph_recursively(graph, func) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\middle\pattern_match.py", line 54, in for_each_sub_graph_recursively for_each_sub_graph(graph, recursive_helper) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\middle\pattern_match.py", line 39, in for_each_sub_graph func(node[sub_graph_name]) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\middle\pattern_match.py", line 50, in recursive_helper func(sub_graph) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\front\tf\replacement.py", line 48, in find_and_replace_pattern self.transform_graph(graph, desc._replacement_desc['custom_attributes']) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\extensions\front\tf\ObjectDetectionAPI.py", line 1222, in transform_graph add_output_ops(graph, _outputs, graph.graph['inputs']) KeyError: 'inputs' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\main.py", line 345, in main ret_code = driver(argv) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\main.py", line 309, in driver ret_res = emit_ir(prepare_ir(argv), argv) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\main.py", line 252, in prepare_ir graph = unified_pipeline(argv) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\pipeline\unified.py", line 25, in unified_pipeline class_registration.apply_replacements(graph, [ File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\utils\class_registration.py", line 340, in apply_replacements apply_replacements_list(graph, replacers_order) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\utils\class_registration.py", line 326, in apply_replacements_list apply_transform( File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\utils\logger.py", line 124, in wrapper function(*args, **kwargs) File "C:\Program Files (x86)\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo\utils\class_registration.py", line 314, in apply_transform raise Exception('Exception occurred during running replacer "{} ({})": {}'.format( Exception: Exception occurred during running replacer "ObjectDetectionAPIOutputReplacement ()": 'inputs' [ ERROR ] ---------------- END OF BUG REPORT -------------- [ ERROR ] -------------------------------------------------