Community
cancel
Showing results for 
Search instead for 
Did you mean: 
pkhan10
New Contributor I
206 Views

Converting trained retinanet model

Hello, 
I have retinanet model trained on custom data, 
I am using following method to convert model...(I dont have pipeline.config file)

python mo_tf.py --input_model '../model_files/Retinanet/tf_model/2019_06_20_11_59_58_resnet50_csv_100.pb' --input_shape '[1,1080,1920,3]' --data_type FP32 --output_dir '../model_files/Retinanet/' --tensorflow_use_custom_operations_config ../model_optimizer/extensions/front/tf/retinanet.json 
 

I am getting following output 

Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/tf_model/2019_06_20_11_59_58_resnet50_csv_100.pb
    - Path for generated IR:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/
    - IR output name:     2019_06_20_11_59_58_resnet50_csv_100
    - 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:     [1,1080,1920,3]
    - 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:     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:     None
    - Operations to offload:     None
    - Patterns to offload:     None
    - Use the config file:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_optimizer/extensions/front/tf/retinanet.json
Model Optimizer version:     2019.2.0-436-gf5827d4
WARNING: Logging before flag parsing goes to stderr.
E0814 12:09:50.081498 140706882546560 main.py:307] Attempt to register of custom name AddN for the second time as class <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>. Note that custom names are case-insensitive. 
 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #55. 

 

Please help me with above error...

0 Kudos
9 Replies
Shubha_R_Intel
Employee
206 Views

Dear khandelwal, prateek

 What happens when you leave out this part ' --tensorflow_use_custom_operations_config ../model_optimizer/extensions/front/tf/retinanet.json 
 ? 

Retinanet is not a Tensorflow Object Detection API so the instructions for Tensorflow Object Detection API don't apply here.

Please add --log_level DEBUG and post your results here.

Thanks,

Shubha

pkhan10
New Contributor I
206 Views

here's the output


python mo_tf.py --input_model '../model_files/Retinanet/tf_model/2019_06_20_11_59_58_resnet50_csv_100.pb' --input_shape '[1,1080,1920,3]' --data_type FP32 --output_dir '../model_files/Retinanet/' --tensorflow_use_custom_operations_config ../model_optimizer/extensions/front/tf/retinanet.json --log_level DEBUG
[ 2019-08-14 23:45:52,743 ] [ DEBUG ] [ main:134 ]  Namespace(batch=None, blobs_as_inputs=False, data_type='FP32', disable_fusing=None, disable_gfusing=None, disable_nhwc_to_nchw=False, disable_resnet_optimization=False, enable_concat_optimization=False, extensions='/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/extensions', finegrain_fusing=None, framework='tf', freeze_placeholder_with_value=None, generate_deprecated_IR_V2=None, generate_experimental_IR_V10=False, input=None, input_checkpoint=None, input_meta_graph=None, input_model='/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/tf_model/2019_06_20_11_59_58_resnet50_csv_100.pb', input_model_is_text=False, input_shape='[1,1080,1920,3]', keep_quantize_ops_in_IR=False, keep_shape_ops=False, log_level='DEBUG', mean_values=(), model_name=None, move_to_preprocess=False, output=None, output_dir='/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/', reverse_input_channels=False, saved_model_dir=None, saved_model_tags=None, scale=None, scale_values=(), silent=False, tensorboard_logdir=None, tensorflow_custom_layer_libraries=None, tensorflow_custom_operations_config_update=None, tensorflow_object_detection_api_pipeline_config=None, tensorflow_operation_patterns=None, tensorflow_subgraph_patterns=None, tensorflow_use_custom_operations_config='/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_optimizer/extensions/front/tf/retinanet.json', version=False)
[ 2019-08-14 23:45:52,743 ] [ DEBUG ] [ main:135 ]  Model Optimizer started
[ 2019-08-14 23:45:52,743 ] [ DEBUG ] [ main:149 ]  Output model name would be 2019_06_20_11_59_58_resnet50_csv_100{.xml, .bin}
Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/tf_model/2019_06_20_11_59_58_resnet50_csv_100.pb
    - Path for generated IR:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_files/Retinanet/
    - IR output name:     2019_06_20_11_59_58_resnet50_csv_100
    - Log level:     DEBUG
    - 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:     [1,1080,1920,3]
    - 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:     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:     None
    - Operations to offload:     None
    - Patterns to offload:     None
    - Use the config file:     /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/../model_optimizer/extensions/front/tf/retinanet.json
Model Optimizer version:     2019.2.0-436-gf5827d4
WARNING: Logging before flag parsing goes to stderr.
I0814 23:45:53.601563 139908237646720 main.py:235] Placeholder shapes : [   1 1080 1920    3]
W0814 23:45:53.607490 139908237646720 deprecation_wrapper.py:119] From /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/front/tf/partial_infer/tf.py:148: The name tf.NodeDef is deprecated. Please use tf.compat.v1.NodeDef instead.

W0814 23:45:53.608494 139908237646720 deprecation_wrapper.py:119] From /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/front/tf/loader.py:35: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

W0814 23:45:53.608589 139908237646720 deprecation_wrapper.py:119] From /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/front/tf/loader.py:109: The name tf.MetaGraphDef is deprecated. Please use tf.compat.v1.MetaGraphDef instead.

I0814 23:45:54.154201 139908237646720 import_extensions.py:67] Importing extensions from: /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo
I0814 23:45:54.161558 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.gather.Gather'>
I0814 23:45:54.161653 139908237646720 class_registration.py:104] Registered a new subclass with key: Gather
I0814 23:45:54.161713 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.const.Const'>
I0814 23:45:54.161761 139908237646720 class_registration.py:104] Registered a new subclass with key: Const
I0814 23:45:54.161810 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.transpose.Transpose'>
I0814 23:45:54.161858 139908237646720 class_registration.py:104] Registered a new subclass with key: Transpose
I0814 23:45:54.161902 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.reshape.Reshape'>
I0814 23:45:54.161946 139908237646720 class_registration.py:104] Registered a new subclass with key: Reshape
I0814 23:45:54.161990 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.scale_shift.ScaleShiftOp'>
I0814 23:45:54.162032 139908237646720 class_registration.py:104] Registered a new subclass with key: ScaleShift
I0814 23:45:54.162077 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.clamp.Clamp'>
I0814 23:45:54.162119 139908237646720 class_registration.py:104] Registered a new subclass with key: Clamp
I0814 23:45:54.162161 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.activation_ops.Activation'>
I0814 23:45:54.162205 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.activation_ops.LeakyReLU'>
I0814 23:45:54.162249 139908237646720 class_registration.py:104] Registered a new subclass with key: LeakyReLU
I0814 23:45:54.162292 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.concat.Concat'>
I0814 23:45:54.162333 139908237646720 class_registration.py:104] Registered a new subclass with key: Concat
I0814 23:45:54.162375 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.convolution.Convolution'>
I0814 23:45:54.162416 139908237646720 class_registration.py:104] Registered a new subclass with key: Convolution
I0814 23:45:54.162458 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.crop.Crop'>
I0814 23:45:54.162499 139908237646720 class_registration.py:104] Registered a new subclass with key: Crop
I0814 23:45:54.162541 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.softmax.Softmax'>
I0814 23:45:54.162583 139908237646720 class_registration.py:104] Registered a new subclass with key: SoftMax
I0814 23:45:54.162625 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.elementwise.Elementwise'>
I0814 23:45:54.162668 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.activation.Activation'>
I0814 23:45:54.162709 139908237646720 class_registration.py:104] Registered a new subclass with key: Activation
I0814 23:45:54.162750 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.broadcast.Broadcast'>
I0814 23:45:54.162790 139908237646720 class_registration.py:104] Registered a new subclass with key: Broadcast
I0814 23:45:54.162831 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.deconvolution.Deconvolution'>
I0814 23:45:54.162872 139908237646720 class_registration.py:104] Registered a new subclass with key: Deconvolution
I0814 23:45:54.162913 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.deformable_convolution.DeformableConvolution'>
I0814 23:45:54.162954 139908237646720 class_registration.py:104] Registered a new subclass with key: DeformableConvolution
I0814 23:45:54.162995 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.eltwise.Eltwise'>
I0814 23:45:54.163035 139908237646720 class_registration.py:104] Registered a new subclass with key: Eltwise
I0814 23:45:54.163077 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.eltwise_n.EltwiseN'>
I0814 23:45:54.163118 139908237646720 class_registration.py:104] Registered a new subclass with key: EltwiseN
I0814 23:45:54.163160 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.eltwise_ninputs_in_1.EltwiseNin1'>
I0814 23:45:54.163200 139908237646720 class_registration.py:104] Registered a new subclass with key: EltwiseNin1
I0814 23:45:54.163242 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.expand_dims.ExpandDims'>
I0814 23:45:54.163282 139908237646720 class_registration.py:104] Registered a new subclass with key: ExpandDims
I0814 23:45:54.163324 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.fill.Fill'>
I0814 23:45:54.163364 139908237646720 class_registration.py:104] Registered a new subclass with key: Fill
I0814 23:45:54.163406 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.flatten.Flatten'>
I0814 23:45:54.163446 139908237646720 class_registration.py:104] Registered a new subclass with key: Flatten
I0814 23:45:54.163488 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.flatten_onnx.FlattenONNX'>
I0814 23:45:54.163530 139908237646720 class_registration.py:104] Registered a new subclass with key: FlattenONNX
I0814 23:45:54.163572 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.group_norm.GroupNorm'>
I0814 23:45:54.163613 139908237646720 class_registration.py:104] Registered a new subclass with key: GroupNorm
I0814 23:45:54.163656 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.inner_product.InnerProduct'>
I0814 23:45:54.163697 139908237646720 class_registration.py:104] Registered a new subclass with key: FullyConnected
I0814 23:45:54.163739 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.input.Input'>
I0814 23:45:54.163779 139908237646720 class_registration.py:104] Registered a new subclass with key: Input
I0814 23:45:54.163821 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.lin_op.LinOp'>
I0814 23:45:54.163863 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.lrn.LRN'>
I0814 23:45:54.163903 139908237646720 class_registration.py:104] Registered a new subclass with key: LRN
I0814 23:45:54.163944 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.lstmnonlinearity.LstmNonLinearity'>
I0814 23:45:54.163985 139908237646720 class_registration.py:104] Registered a new subclass with key: LstmNonLinearity
I0814 23:45:54.164026 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.memory.Memory'>
I0814 23:45:54.164066 139908237646720 class_registration.py:104] Registered a new subclass with key: Memory
I0814 23:45:54.164108 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.memoryoffset.MemoryOffset'>
I0814 23:45:54.164147 139908237646720 class_registration.py:104] Registered a new subclass with key: MemoryOffset
I0814 23:45:54.164188 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.output.Output'>
I0814 23:45:54.164228 139908237646720 class_registration.py:104] Registered a new subclass with key: OpOutput
I0814 23:45:54.164270 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.pad.Pad'>
I0814 23:45:54.164309 139908237646720 class_registration.py:104] Registered a new subclass with key: Pad
I0814 23:45:54.164352 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.permute.Permute'>
I0814 23:45:54.164392 139908237646720 class_registration.py:104] Registered a new subclass with key: Permute
I0814 23:45:54.164433 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.pooling.Pooling'>
I0814 23:45:54.164473 139908237646720 class_registration.py:104] Registered a new subclass with key: Pooling
I0814 23:45:54.164515 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.power.Power'>
I0814 23:45:54.164555 139908237646720 class_registration.py:104] Registered a new subclass with key: Power
I0814 23:45:54.164596 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.reduce.Reduce'>
I0814 23:45:54.164638 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.result.Result'>
I0814 23:45:54.164677 139908237646720 class_registration.py:104] Registered a new subclass with key: Result
I0814 23:45:54.164718 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.roipooling.ROIPooling'>
I0814 23:45:54.164757 139908237646720 class_registration.py:104] Registered a new subclass with key: ROIPooling
I0814 23:45:54.164799 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.shape.Shape'>
I0814 23:45:54.164839 139908237646720 class_registration.py:104] Registered a new subclass with key: ShapeOf
I0814 23:45:54.164880 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.slice.Slice'>
I0814 23:45:54.164920 139908237646720 class_registration.py:104] Registered a new subclass with key: Slice
I0814 23:45:54.164962 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.split.Split'>
I0814 23:45:54.165002 139908237646720 class_registration.py:104] Registered a new subclass with key: Split
I0814 23:45:54.165044 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.squeeze.Squeeze'>
I0814 23:45:54.165083 139908237646720 class_registration.py:104] Registered a new subclass with key: Squeeze
I0814 23:45:54.165143 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.strided_slice.StridedSlice'>
I0814 23:45:54.165184 139908237646720 class_registration.py:104] Registered a new subclass with key: StridedSlice
I0814 23:45:54.165226 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.tile.Tile'>
I0814 23:45:54.165266 139908237646720 class_registration.py:104] Registered a new subclass with key: Tile
I0814 23:45:54.165308 139908237646720 class_registration.py:93] New subclass: <class 'mo.ops.unsqueeze.Unsqueeze'>
I0814 23:45:54.165351 139908237646720 class_registration.py:104] Registered a new subclass with key: Unsqueeze
I0814 23:45:54.166201 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.common.replacement.FrontReplacementSubgraph'>
I0814 23:45:54.166275 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileGeneral'>
I0814 23:45:54.166337 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.common.replacement.FrontReplacementOp'>
I0814 23:45:54.166387 139908237646720 class_registration.py:104] Registered a new subclass with key: UnknownOp
I0814 23:45:54.166435 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileSubGraph'>
I0814 23:45:54.166486 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileOp'>
W0814 23:45:54.166970 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementSubgraph'> registration because it was already registered or it was disabled. 
W0814 23:45:54.167037 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileGeneral'> registration because it was already registered or it was disabled. 
W0814 23:45:54.167095 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.167142 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileSubGraph'> registration because it was already registered or it was disabled. 
W0814 23:45:54.167191 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileOp'> registration because it was already registered or it was disabled. 
I0814 23:45:54.167445 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.ConcatOptimization.ConcatOptimization'>
I0814 23:45:54.167513 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.EltwiseChecker.EltwiseChecker'>
I0814 23:45:54.167566 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.EltwiseInputReshape.Eltwise1DInputReshape'>
I0814 23:45:54.167616 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.EltwiseInputReshape.EltwiseInputReshape'>
I0814 23:45:54.167665 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.EltwiseInputNormalization.EltwiseInputNormalize'>
I0814 23:45:54.168082 139908237646720 class_registration.py:93] New subclass: <class 'extensions.back.CreateConstNodes.CreateConstNodesReplacement'>
I0814 23:45:54.168245 139908237646720 class_registration.py:93] New subclass: <class 'extensions.back.FuseReshapesSequence.FuseReshapesSequence'>
I0814 23:45:54.168330 139908237646720 class_registration.py:93] New subclass: <class 'extensions.back.InsertLayoutPropagationTransposes.InsertLayoutPropagationTranspose'>
I0814 23:45:54.168389 139908237646720 class_registration.py:93] New subclass: <class 'extensions.back.RemoveRedundantReshapes.RemoveRedundantReshapes'>
I0814 23:45:54.168441 139908237646720 class_registration.py:93] New subclass: <class 'extensions.middle.LayoutChangeForConstantShapePaths.LayoutChangeForConstantShapePaths'>
I0814 23:45:54.177491 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.extractors.elu.Elu'>
I0814 23:45:54.177602 139908237646720 class_registration.py:104] Registered a new subclass with key: Elu
I0814 23:45:54.177663 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.extractors.sigmoid.Sigmoid'>
I0814 23:45:54.177712 139908237646720 class_registration.py:104] Registered a new subclass with key: Sigmoid
I0814 23:45:54.177761 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.extractors.strided_slice.StridedSliceFrontExtractor'>
I0814 23:45:54.177805 139908237646720 class_registration.py:104] Registered a new subclass with key: StridedSlice
I0814 23:45:54.177851 139908237646720 class_registration.py:93] New subclass: <class 'mo.front.tf.extractors.tanh.Tanh'>
I0814 23:45:54.177894 139908237646720 class_registration.py:104] Registered a new subclass with key: Tanh
W0814 23:45:54.177951 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementSubgraph'> registration because it was already registered or it was disabled. 
W0814 23:45:54.177998 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileGeneral'> registration because it was already registered or it was disabled. 
W0814 23:45:54.178045 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.178088 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileSubGraph'> registration because it was already registered or it was disabled. 
W0814 23:45:54.178134 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileOp'> registration because it was already registered or it was disabled. 
I0814 23:45:54.178188 139908237646720 import_extensions.py:67] Importing extensions from: /home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/extensions
W0814 23:45:54.203110 139908237646720 class_registration.py:106] Skipped <class 'extensions.ops.gather.Gather'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203231 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.const.Const'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203292 139908237646720 class_registration.py:106] Skipped <class 'extensions.ops.transpose.Transpose'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203341 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.reshape.Reshape'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203387 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.scale_shift.ScaleShiftOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203432 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.clamp.Clamp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203475 139908237646720 class_registration.py:106] Skipped <class 'extensions.ops.activation_ops.Activation'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203518 139908237646720 class_registration.py:106] Skipped <class 'extensions.ops.activation_ops.LeakyReLU'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203560 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.concat.Concat'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203604 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.convolution.Convolution'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203646 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.crop.Crop'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203689 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.softmax.Softmax'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203731 139908237646720 class_registration.py:106] Skipped <class 'extensions.ops.elementwise.Elementwise'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203771 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.activation.Activation'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203812 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.broadcast.Broadcast'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203853 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.deconvolution.Deconvolution'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203895 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.deformable_convolution.DeformableConvolution'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203937 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.eltwise.Eltwise'> registration because it was already registered or it was disabled. 
W0814 23:45:54.203979 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.eltwise_n.EltwiseN'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204020 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.eltwise_ninputs_in_1.EltwiseNin1'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204061 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.expand_dims.ExpandDims'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204103 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.fill.Fill'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204144 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.flatten.Flatten'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204186 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.flatten_onnx.FlattenONNX'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204226 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.group_norm.GroupNorm'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204267 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.inner_product.InnerProduct'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204308 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.input.Input'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204349 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.lin_op.LinOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204391 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.lrn.LRN'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204433 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.lstmnonlinearity.LstmNonLinearity'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204475 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.memory.Memory'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204517 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.memoryoffset.MemoryOffset'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204558 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.output.Output'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204600 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.pad.Pad'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204642 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.permute.Permute'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204683 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.pooling.Pooling'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204724 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.power.Power'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204765 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.reduce.Reduce'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204807 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.result.Result'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204848 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.roipooling.ROIPooling'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204889 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.shape.Shape'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204931 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.slice.Slice'> registration because it was already registered or it was disabled. 
W0814 23:45:54.204972 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.split.Split'> registration because it was already registered or it was disabled. 
W0814 23:45:54.205013 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.squeeze.Squeeze'> registration because it was already registered or it was disabled. 
W0814 23:45:54.205054 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.strided_slice.StridedSlice'> registration because it was already registered or it was disabled. 
W0814 23:45:54.205120 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.tile.Tile'> registration because it was already registered or it was disabled. 
W0814 23:45:54.205166 139908237646720 class_registration.py:106] Skipped <class 'mo.ops.unsqueeze.Unsqueeze'> registration because it was already registered or it was disabled. 
I0814 23:45:54.205211 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.BatchMatMul.BatchMatMul'>
I0814 23:45:54.205254 139908237646720 class_registration.py:104] Registered a new subclass with key: BatchMatMul
I0814 23:45:54.205298 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.BlockLSTM.BlockLSTM'>
I0814 23:45:54.205339 139908237646720 class_registration.py:104] Registered a new subclass with key: BlockLSTM
I0814 23:45:54.205382 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.Cast.Cast'>
I0814 23:45:54.205422 139908237646720 class_registration.py:104] Registered a new subclass with key: Cast
I0814 23:45:54.205466 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.DetectionOutput.DetectionOutput'>
I0814 23:45:54.205507 139908237646720 class_registration.py:104] Registered a new subclass with key: DetectionOutput
I0814 23:45:54.205550 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.Enter.Enter'>
I0814 23:45:54.205591 139908237646720 class_registration.py:104] Registered a new subclass with key: Enter
I0814 23:45:54.205633 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.Exit.Exit'>
I0814 23:45:54.205674 139908237646720 class_registration.py:104] Registered a new subclass with key: Exit
I0814 23:45:54.205717 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.RNN.RNN'>
I0814 23:45:54.205757 139908237646720 class_registration.py:104] Registered a new subclass with key: RNN
I0814 23:45:54.205799 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.GRU.GRU'>
I0814 23:45:54.205839 139908237646720 class_registration.py:104] Registered a new subclass with key: GRU
I0814 23:45:54.205881 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.GRUCell.GRUCell'>
I0814 23:45:54.205921 139908237646720 class_registration.py:104] Registered a new subclass with key: GRUCell
I0814 23:45:54.205963 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.GatherNd.GatherNd'>
I0814 23:45:54.206003 139908237646720 class_registration.py:104] Registered a new subclass with key: GatherNd
I0814 23:45:54.206046 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.GatherTree.GatherTree'>
I0814 23:45:54.206087 139908237646720 class_registration.py:104] Registered a new subclass with key: GatherTree
I0814 23:45:54.206131 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.LSTM.LSTM'>
I0814 23:45:54.206172 139908237646720 class_registration.py:104] Registered a new subclass with key: LSTM
I0814 23:45:54.206215 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.Log.LogOp'>
I0814 23:45:54.206254 139908237646720 class_registration.py:104] Registered a new subclass with key: Log
I0814 23:45:54.206298 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.NextIteration.NextIteration'>
I0814 23:45:54.206338 139908237646720 class_registration.py:104] Registered a new subclass with key: NextIteration
I0814 23:45:54.206380 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.RNNCell.RNNCell'>
I0814 23:45:54.206420 139908237646720 class_registration.py:104] Registered a new subclass with key: RNNCell
I0814 23:45:54.206462 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.ReduceOps.ReduceOp'>
I0814 23:45:54.206506 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.Reverse.Reverse'>
I0814 23:45:54.206547 139908237646720 class_registration.py:104] Registered a new subclass with key: Reverse
I0814 23:45:54.206590 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.SquaredDifference.SquaredDifference'>
I0814 23:45:54.206631 139908237646720 class_registration.py:104] Registered a new subclass with key: SquaredDifference
I0814 23:45:54.206673 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArray.TensorArray'>
I0814 23:45:54.206714 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayV3
I0814 23:45:54.206756 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArrayGather.TensorArrayGather'>
I0814 23:45:54.206797 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayGatherV3
I0814 23:45:54.206839 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArrayRead.TensorArrayReader'>
I0814 23:45:54.206880 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayReadV3
I0814 23:45:54.206923 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArrayScatter.TensorArrayScatter'>
I0814 23:45:54.206963 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayScatterV3
I0814 23:45:54.207005 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArraySize.TensorArraySize'>
I0814 23:45:54.207047 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArraySizeV3
I0814 23:45:54.207089 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorArrayWrite.TensorArrayWriter'>
I0814 23:45:54.207129 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayWriteV3
I0814 23:45:54.207171 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorIterator_ops.TensorIteratorInput'>
I0814 23:45:54.207211 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorIteratorInput
I0814 23:45:54.207254 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorIterator_ops.TensorIteratorOutput'>
I0814 23:45:54.207295 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorIteratorOutput
I0814 23:45:54.207338 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorIterator_ops.TensorIteratorCondition'>
I0814 23:45:54.207378 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorIteratorCondition
I0814 23:45:54.207420 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.TensorIterator_ops.TensorIteratorBackEdge'>
I0814 23:45:54.207460 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorIteratorBackEdge
I0814 23:45:54.207502 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.accum.AccumOp'>
I0814 23:45:54.207543 139908237646720 class_registration.py:104] Registered a new subclass with key: Accum
I0814 23:45:54.207585 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.argmax.ArgMaxOp'>
I0814 23:45:54.207625 139908237646720 class_registration.py:104] Registered a new subclass with key: ArgMax
I0814 23:45:54.207667 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.assert_op.Assert'>
I0814 23:45:54.207707 139908237646720 class_registration.py:104] Registered a new subclass with key: Assert
I0814 23:45:54.207749 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.axpy.AxpyOp'>
I0814 23:45:54.207789 139908237646720 class_registration.py:104] Registered a new subclass with key: Axpy
I0814 23:45:54.207831 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.binarization.Binarization'>
I0814 23:45:54.207872 139908237646720 class_registration.py:104] Registered a new subclass with key: Binarization
I0814 23:45:54.207914 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.bn.BNOp'>
I0814 23:45:54.207954 139908237646720 class_registration.py:104] Registered a new subclass with key: BN
I0814 23:45:54.207997 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.box_nms.BoxNms'>
I0814 23:45:54.208037 139908237646720 class_registration.py:104] Registered a new subclass with key: _contrib_box_nms
I0814 23:45:54.208080 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.constant_fill.ConstantFill'>
I0814 23:45:54.208120 139908237646720 class_registration.py:104] Registered a new subclass with key: ConstantFill
I0814 23:45:54.208164 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.copy.CopyOp'>
I0814 23:45:54.208204 139908237646720 class_registration.py:104] Registered a new subclass with key: copy
I0814 23:45:54.208248 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.correlation.CorrelationOp'>
I0814 23:45:54.208289 139908237646720 class_registration.py:104] Registered a new subclass with key: Correlation
I0814 23:45:54.208332 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.ctc_greedy_decoder.CTCGreedyDecoderOp'>
I0814 23:45:54.208374 139908237646720 class_registration.py:104] Registered a new subclass with key: CTCGreedyDecoder
I0814 23:45:54.208416 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.data_augmentation.DataAugmentationOp'>
I0814 23:45:54.208457 139908237646720 class_registration.py:104] Registered a new subclass with key: DataAugmentation
I0814 23:45:54.208500 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.depth_to_space.DepthToSpaceOp'>
I0814 23:45:54.208540 139908237646720 class_registration.py:104] Registered a new subclass with key: DepthToSpace
I0814 23:45:54.208583 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.detectionoutput_onnx.ExperimentalDetectronDetectionOutput'>
I0814 23:45:54.208625 139908237646720 class_registration.py:104] Registered a new subclass with key: ExperimentalDetectronDetectionOutput
I0814 23:45:54.208667 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.exp.ExpOp'>
I0814 23:45:54.208708 139908237646720 class_registration.py:104] Registered a new subclass with key: Exp
I0814 23:45:54.208751 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.fakequantize.FakeQuantize'>
I0814 23:45:54.208794 139908237646720 class_registration.py:104] Registered a new subclass with key: FakeQuantize
I0814 23:45:54.208838 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.grn.GRNOp'>
I0814 23:45:54.208878 139908237646720 class_registration.py:104] Registered a new subclass with key: GRN
I0814 23:45:54.208922 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.identity.IdentityOp'>
I0814 23:45:54.208962 139908237646720 class_registration.py:104] Registered a new subclass with key: Identity
I0814 23:45:54.209005 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.instance_normalization.InstanceNormalization'>
I0814 23:45:54.209046 139908237646720 class_registration.py:104] Registered a new subclass with key: InstanceNormalization
I0814 23:45:54.209093 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.interp.InterpOp'>
I0814 23:45:54.209135 139908237646720 class_registration.py:104] Registered a new subclass with key: Interp
I0814 23:45:54.209178 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.interpolate.Interpolate'>
I0814 23:45:54.209218 139908237646720 class_registration.py:104] Registered a new subclass with key: Interpolate
I0814 23:45:54.209260 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.lstm_cell.LSTMCell'>
I0814 23:45:54.209301 139908237646720 class_registration.py:104] Registered a new subclass with key: LSTMCell
I0814 23:45:54.209343 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.lstm_sequence.LSTMSequence'>
I0814 23:45:54.209384 139908237646720 class_registration.py:104] Registered a new subclass with key: LSTMSequence
I0814 23:45:54.209427 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.merge.Merge'>
I0814 23:45:54.209468 139908237646720 class_registration.py:104] Registered a new subclass with key: Merge
I0814 23:45:54.209511 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.mvn.MVN'>
I0814 23:45:54.209551 139908237646720 class_registration.py:104] Registered a new subclass with key: MVN
I0814 23:45:54.209594 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.normalize.NormalizeOp'>
I0814 23:45:54.209634 139908237646720 class_registration.py:104] Registered a new subclass with key: Normalize
I0814 23:45:54.209677 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.one_hot.OneHot'>
I0814 23:45:54.209717 139908237646720 class_registration.py:104] Registered a new subclass with key: OneHot
I0814 23:45:54.209760 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.pack.PackOp'>
I0814 23:45:54.209800 139908237646720 class_registration.py:104] Registered a new subclass with key: Pack
I0814 23:45:54.209842 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.parameter.Parameter'>
I0814 23:45:54.209883 139908237646720 class_registration.py:104] Registered a new subclass with key: Parameter
I0814 23:45:54.209925 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.power_file.PowerFileOp'>
I0814 23:45:54.209965 139908237646720 class_registration.py:104] Registered a new subclass with key: PowerFile
I0814 23:45:54.210008 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.prediction_heatmap.PredictionHeatmapOp'>
I0814 23:45:54.210048 139908237646720 class_registration.py:104] Registered a new subclass with key: PredictionHeatmap
I0814 23:45:54.210092 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.prelu.PreluOp'>
I0814 23:45:54.210133 139908237646720 class_registration.py:104] Registered a new subclass with key: PReLU
I0814 23:45:54.210175 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.priorbox.PriorBoxOp'>
I0814 23:45:54.210216 139908237646720 class_registration.py:104] Registered a new subclass with key: PriorBox
I0814 23:45:54.210258 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.priorbox_clustered.PriorBoxClusteredOp'>
I0814 23:45:54.210299 139908237646720 class_registration.py:104] Registered a new subclass with key: PriorBoxClustered
I0814 23:45:54.210342 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.priorgridgenerator_onnx.ExperimentalDetectronPriorGridGenerator'>
I0814 23:45:54.210383 139908237646720 class_registration.py:104] Registered a new subclass with key: ExperimentalDetectronPriorGridGenerator
I0814 23:45:54.210426 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.proposal.ProposalOp'>
I0814 23:45:54.210466 139908237646720 class_registration.py:104] Registered a new subclass with key: Proposal
I0814 23:45:54.210509 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.proposal_onnx.ExperimentalDetectronGenerateProposalsSingleImage'>
I0814 23:45:54.210550 139908237646720 class_registration.py:104] Registered a new subclass with key: ExperimentalDetectronGenerateProposalsSingleImage
I0814 23:45:54.210596 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.psroipooling.PSROIPoolingOp'>
I0814 23:45:54.210636 139908237646720 class_registration.py:104] Registered a new subclass with key: PSROIPooling
I0814 23:45:54.210678 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.quantize.QuantizeOp'>
I0814 23:45:54.210717 139908237646720 class_registration.py:104] Registered a new subclass with key: Quantize
I0814 23:45:54.210760 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.range.Range'>
I0814 23:45:54.210800 139908237646720 class_registration.py:104] Registered a new subclass with key: Range
I0814 23:45:54.210842 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.rank.Rank'>
I0814 23:45:54.210883 139908237646720 class_registration.py:104] Registered a new subclass with key: Rank
I0814 23:45:54.210925 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.regionyolo.RegionYoloOp'>
I0814 23:45:54.210966 139908237646720 class_registration.py:104] Registered a new subclass with key: RegionYolo
I0814 23:45:54.211009 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.reorgyolo.ReorgYoloOp'>
I0814 23:45:54.211050 139908237646720 class_registration.py:104] Registered a new subclass with key: ReorgYolo
I0814 23:45:54.211093 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.resample.ResampleOp'>
I0814 23:45:54.211133 139908237646720 class_registration.py:104] Registered a new subclass with key: Resample
I0814 23:45:54.211176 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.reverse_sequence.ReverseSequence'>
I0814 23:45:54.211216 139908237646720 class_registration.py:104] Registered a new subclass with key: ReverseSequence
I0814 23:45:54.211259 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.roifeatureextractor_onnx.ExperimentalDetectronROIFeatureExtractor'>
I0814 23:45:54.211300 139908237646720 class_registration.py:104] Registered a new subclass with key: ExperimentalDetectronROIFeatureExtractor
I0814 23:45:54.211342 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.select.Select'>
I0814 23:45:54.211382 139908237646720 class_registration.py:104] Registered a new subclass with key: Select
I0814 23:45:54.211425 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.shufflechannel.ShuffleChannelOp'>
I0814 23:45:54.211466 139908237646720 class_registration.py:104] Registered a new subclass with key: ShuffleChannel
I0814 23:45:54.211509 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.simplernms.SimplerNMSOp'>
I0814 23:45:54.211550 139908237646720 class_registration.py:104] Registered a new subclass with key: SimplerNMS
I0814 23:45:54.211595 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.size.Size'>
I0814 23:45:54.211635 139908237646720 class_registration.py:104] Registered a new subclass with key: Size
I0814 23:45:54.211679 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.space_to_depth.SpaceToDepth'>
I0814 23:45:54.211719 139908237646720 class_registration.py:104] Registered a new subclass with key: SpaceToDepth
I0814 23:45:54.211763 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.spatial_transformer.SpatialTransformOp'>
I0814 23:45:54.211804 139908237646720 class_registration.py:104] Registered a new subclass with key: SpatialTransformer
I0814 23:45:54.211847 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.splice.Splice'>
I0814 23:45:54.211887 139908237646720 class_registration.py:104] Registered a new subclass with key: Splice
I0814 23:45:54.211930 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.splitv.SplitV'>
I0814 23:45:54.211970 139908237646720 class_registration.py:104] Registered a new subclass with key: SplitV
I0814 23:45:54.212014 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.stop_gradient.StopGradientOp'>
I0814 23:45:54.212054 139908237646720 class_registration.py:104] Registered a new subclass with key: StopGradient
I0814 23:45:54.212097 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.swapaxis.SwapAxis'>
I0814 23:45:54.212136 139908237646720 class_registration.py:104] Registered a new subclass with key: SwapAxis
I0814 23:45:54.212179 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.switch.Switch'>
I0814 23:45:54.212219 139908237646720 class_registration.py:104] Registered a new subclass with key: Switch
I0814 23:45:54.212262 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.tensor_iterator.TensorIterator'>
I0814 23:45:54.212301 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorIterator
I0814 23:45:54.212344 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.topk.TopK'>
I0814 23:45:54.212393 139908237646720 class_registration.py:104] Registered a new subclass with key: TopK
I0814 23:45:54.212437 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.topkrois_onnx.ExperimentalDetectronTopKROIs'>
I0814 23:45:54.212477 139908237646720 class_registration.py:104] Registered a new subclass with key: ExperimentalDetectronTopKROIs
I0814 23:45:54.212520 139908237646720 class_registration.py:93] New subclass: <class 'extensions.ops.upsample.UpsampleOp'>
I0814 23:45:54.212560 139908237646720 class_registration.py:104] Registered a new subclass with key: Upsample
W0814 23:45:54.221881 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.elu.Elu'> registration because it was already registered or it was disabled. 
W0814 23:45:54.222010 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.sigmoid.Sigmoid'> registration because it was already registered or it was disabled. 
W0814 23:45:54.222071 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.strided_slice.StridedSliceFrontExtractor'> registration because it was already registered or it was disabled. 
W0814 23:45:54.222122 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.tanh.Tanh'> registration because it was already registered or it was disabled. 
I0814 23:45:54.222240 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.InterpolateNormalizer.InterpolateNormalizer'>
I0814 23:45:54.222311 139908237646720 class_registration.py:104] Registered a new subclass with key: Interpolate
I0814 23:45:54.222382 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.LRNReplacer.LRNReplacer'>
I0814 23:45:54.222451 139908237646720 class_registration.py:104] Registered a new subclass with key: LRN
I0814 23:45:54.222521 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.Pack.Pack'>
I0814 23:45:54.222589 139908237646720 class_registration.py:104] Registered a new subclass with key: Pack
I0814 23:45:54.222659 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.PowerToEltwises.PowerToEltwises'>
I0814 23:45:54.222723 139908237646720 class_registration.py:104] Registered a new subclass with key: Power
I0814 23:45:54.222792 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.FakeQuantWithMinMaxVars.FakeQuantWithMinMaxVarsToQuantize'>
I0814 23:45:54.222857 139908237646720 class_registration.py:104] Registered a new subclass with key: FakeQuantWithMinMaxVars
I0814 23:45:54.222924 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.div.Div'>
I0814 23:45:54.222990 139908237646720 class_registration.py:104] Registered a new subclass with key: Div
I0814 23:45:54.223051 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.eltwise_n.EltwiseNReplacement'>
I0814 23:45:54.223118 139908237646720 class_registration.py:104] Registered a new subclass with key: EltwiseN
I0814 23:45:54.223181 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.image_scaler.ImageScaler'>
I0814 23:45:54.223241 139908237646720 class_registration.py:104] Registered a new subclass with key: ImageScaler
I0814 23:45:54.223311 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.instance_normalization.InstanceNormalization'>
I0814 23:45:54.223368 139908237646720 class_registration.py:104] Registered a new subclass with key: InstanceNormalization
I0814 23:45:54.223436 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.reciprocal.ReciprocalReplacer'>
I0814 23:45:54.223499 139908237646720 class_registration.py:104] Registered a new subclass with key: Reciprocal
I0814 23:45:54.223564 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.sub.Sub'>
I0814 23:45:54.223645 139908237646720 class_registration.py:104] Registered a new subclass with key: Sub
I0814 23:45:54.223735 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.squared_difference.SquaredDifference'>
I0814 23:45:54.223805 139908237646720 class_registration.py:104] Registered a new subclass with key: SquaredDifference
W0814 23:45:54.223930 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementSubgraph'> registration because it was already registered or it was disabled. 
W0814 23:45:54.224023 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileGeneral'> registration because it was already registered or it was disabled. 
I0814 23:45:54.224098 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.ExpandDimsToUnsqueeze.ExpandDimsToUnsqueeze'>
I0814 23:45:54.224178 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.FillToBroadcast.FillToBroadcast'>
I0814 23:45:54.224246 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.SqueezeNormalize.SqueezeNormalize'>
I0814 23:45:54.224324 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.TopKNormalize.TopKNormalize'>
I0814 23:45:54.224391 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.binary_quantize_normalization.BinaryFakeQuantizeNormalization'>
I0814 23:45:54.224463 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.create_tensor_nodes.CreateTensorNodes'>
I0814 23:45:54.224533 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.disable_weights_quantize_value_propagation.DisableQuantizeValuePropagation'>
I0814 23:45:54.224602 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.input_cut.InputCut'>
I0814 23:45:54.224665 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.output_cut.OutputCut'>
I0814 23:45:54.224725 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.override_batch.OverrideBatch'>
I0814 23:45:54.224792 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.pass_separator.FrontStart'>
I0814 23:45:54.224858 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.pass_separator.FrontFinish'>
I0814 23:45:54.224927 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.user_data_repack.UserDataRepack'>
W0814 23:45:54.225044 139908237646720 class_registration.py:106] Skipped <class 'mo.front.common.replacement.FrontReplacementOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.225178 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileSubGraph'> registration because it was already registered or it was disabled. 
I0814 23:45:54.225271 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.ArgMaxSqueeze.ArgMaxSqueeze'>
I0814 23:45:54.225344 139908237646720 class_registration.py:104] Registered a new subclass with key: ArgMax
I0814 23:45:54.225416 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.TransposeOrderNormalizer.TransposeOrderNormalizer'>
I0814 23:45:54.225474 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.freeze_placeholder_value.FreezePlaceholderValue'>
I0814 23:45:54.225543 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.no_op_eraser.NoOpEraser'>
I0814 23:45:54.225612 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.reduce_axis_normalizer.ReduceAxisNormalizer'>
I0814 23:45:54.225670 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.reshape_dim_normalizer.ReshapeDimNormalizer'>
I0814 23:45:54.225735 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.restore_ports.RestorePorts'>
I0814 23:45:54.225796 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.softmax.SoftmaxFromKeras'>
I0814 23:45:54.225857 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.standalone_const_eraser.StandaloneConstEraser'>
W0814 23:45:54.225965 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.replacement.FrontReplacementFromConfigFileOp'> registration because it was already registered or it was disabled. 
W0814 23:45:54.258114 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.elu.Elu'> registration because it was already registered or it was disabled. 
W0814 23:45:54.258605 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.sigmoid.Sigmoid'> registration because it was already registered or it was disabled. 
W0814 23:45:54.258827 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.strided_slice.StridedSliceFrontExtractor'> registration because it was already registered or it was disabled. 
W0814 23:45:54.258932 139908237646720 class_registration.py:106] Skipped <class 'mo.front.tf.extractors.tanh.Tanh'> registration because it was already registered or it was disabled. 
I0814 23:45:54.259024 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.BatchMatMul_ext.BatchMatMulExtractor'>
I0814 23:45:54.259114 139908237646720 class_registration.py:104] Registered a new subclass with key: BatchMatMul
I0814 23:45:54.259190 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.BlockLSTM_ext.BlockLSTMExtractor'>
I0814 23:45:54.259259 139908237646720 class_registration.py:104] Registered a new subclass with key: BlockLSTM
I0814 23:45:54.259334 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.CTCGreedyDecoder_ext.CTCCGreedyDecoderFrontExtractor'>
I0814 23:45:54.259407 139908237646720 class_registration.py:104] Registered a new subclass with key: CTCGreedyDecoder
I0814 23:45:54.259476 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.Cast_ext.CastFrontExtractor'>
I0814 23:45:54.259542 139908237646720 class_registration.py:104] Registered a new subclass with key: Cast
I0814 23:45:54.259620 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.FakeQuantWithMinMaxVars_ext.FakeQuantWithMinMaxVarsExtractor'>
I0814 23:45:54.259692 139908237646720 class_registration.py:104] Registered a new subclass with key: FakeQuantWithMinMaxVars
I0814 23:45:54.259769 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.FloorMod_ext.EltwiseFrontExtractor'>
I0814 23:45:54.259837 139908237646720 class_registration.py:104] Registered a new subclass with key: FloorMod
I0814 23:45:54.259906 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.GatherTree_ext.GatherTreeFrontExtractor'>
I0814 23:45:54.259969 139908237646720 class_registration.py:104] Registered a new subclass with key: GatherTree
I0814 23:45:54.260041 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.LoopCond_ext.LoopCondFrontExtractor'>
I0814 23:45:54.260109 139908237646720 class_registration.py:104] Registered a new subclass with key: LoopCond
I0814 23:45:54.260184 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.Not_ext.LogicalNotFrontExtractor'>
I0814 23:45:54.260256 139908237646720 class_registration.py:104] Registered a new subclass with key: LogicalNot
I0814 23:45:54.260329 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.TensorArrayExtractors.TensorArrayExtractor'>
I0814 23:45:54.260395 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayV3
I0814 23:45:54.260465 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.TensorArrayGatherV3.TensorArrayGatherV3Exteractor'>
I0814 23:45:54.260540 139908237646720 class_registration.py:104] Registered a new subclass with key: TensorArrayGatherV3
I0814 23:45:54.260610 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.addn_ext.AddNExtractor'>
I0814 23:45:54.260681 139908237646720 class_registration.py:104] Registered a new subclass with key: AddN
I0814 23:45:54.260751 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.all_ext.AllFrontExtractor'>
I0814 23:45:54.260822 139908237646720 class_registration.py:104] Registered a new subclass with key: All
I0814 23:45:54.260892 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.argmax_ext.ArgMaxFrontExtractor'>
I0814 23:45:54.260955 139908237646720 class_registration.py:104] Registered a new subclass with key: ArgMax
I0814 23:45:54.261025 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.concat_ext.ConcatFrontExtractor'>
I0814 23:45:54.261120 139908237646720 class_registration.py:104] Registered a new subclass with key: Concat
I0814 23:45:54.261224 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.conv_ext.Conv2DFrontExtractor'>
I0814 23:45:54.261285 139908237646720 class_registration.py:104] Registered a new subclass with key: Conv2D
I0814 23:45:54.261350 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.conv_ext.DepthwiseConv2dNativeFrontExtractor'>
I0814 23:45:54.261412 139908237646720 class_registration.py:104] Registered a new subclass with key: DepthwiseConv2dNative
I0814 23:45:54.261481 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.conv_ext.Conv3DFrontExtractor'>
I0814 23:45:54.261540 139908237646720 class_registration.py:104] Registered a new subclass with key: Conv3D
I0814 23:45:54.261587 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.crop_and_resize_ext.CropAndResizeFrontExtractor'>
I0814 23:45:54.261629 139908237646720 class_registration.py:104] Registered a new subclass with key: CropAndResize
I0814 23:45:54.261673 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.deconv_ext.Conv2DBackpropInputFrontExtractor'>
I0814 23:45:54.261715 139908237646720 class_registration.py:104] Registered a new subclass with key: Conv2DBackpropInput
I0814 23:45:54.261758 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.deconv_ext.Conv3DBackpropInputV2InputFrontExtractor'>
I0814 23:45:54.261800 139908237646720 class_registration.py:104] Registered a new subclass with key: Conv3DBackpropInputV2
I0814 23:45:54.261842 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.depth_to_space.DepthToSpaceFrontExtractor'>
I0814 23:45:54.261886 139908237646720 class_registration.py:104] Registered a new subclass with key: DepthToSpace
I0814 23:45:54.261929 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.elementwise_ext.AddExtractor'>
I0814 23:45:54.261970 139908237646720 class_registration.py:104] Registered a new subclass with key: Add
I0814 23:45:54.262012 139908237646720 class_registration.py:93] New subclass: <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>
E0814 23:45:54.262077 139908237646720 main.py:307] Attempt to register of custom name AddN for the second time as class <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>. Note that custom names are case-insensitive. 
 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #55. 
I0814 23:45:54.262602 139908237646720 main.py:308] Traceback (most recent call last):
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/main.py", line 302, in main
    return driver(argv)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/main.py", line 249, in driver
    import_extensions.load_dirs(argv.framework, extensions, get_front_classes)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/import_extensions.py", line 100, in load_dirs
    load_dir(framework, path, get_front_classes)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/import_extensions.py", line 86, in load_dir
    update_registration(internal_dirs

, enabled_transforms, disabled_transforms)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/class_registration.py", line 112, in update_registration
    _update(cls, cls.registered_cls, cls.registered_ops, 'op', enabled_transforms, disabled_transforms)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/class_registration.py", line 100, in _update
    refer_to_faq_msg(55), k, c)
mo.utils.error.Error: Attempt to register of custom name AddN for the second time as class <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>. Note that custom names are case-insensitive. 
 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #55. 

Shubha_R_Intel
Employee
206 Views

Dear khandelwal, prateek,

Does Model Optimizer succeed on a pre-trained https://github.com/fizyr/keras-retinanet ? You mentioned custom-trained. What about the default pre-trained model ? This is a keras model so you must first convert it to frozen tensorflow before you can use Model Optimizer. 

If so, what model optimizer command did you use ? 

Also can you kindly try it without --tensorflow_use_custom_operations_config ../model_optimizer/extensions/front/tf/retinanet.json  ?

Thanks,

Shubha

 

 

pkhan10
New Contributor I
206 Views

Hello Shubha,

First I convert h5 to frozen model .pb and then i use model optimizer(I am not testing it with .h5 directly)

also i am using openvino_2019.2.242, with python 3.6


I also tried Model optimizer on default model provided by keras_retinanet..
again ended up in same error.. as above..
I also tested mo.py without tensorflow_use_custom_operations_config, again ended up in same error. 

I0816 09:38:57.639997 140362475977600 class_registration.py:93] New subclass: <class 'extensions.front.tf.elementwise_ext.AddExtractor'>
I0816 09:38:57.640037 140362475977600 class_registration.py:104] Registered a new subclass with key: Add
I0816 09:38:57.640079 140362475977600 class_registration.py:93] New subclass: <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>
E0816 09:38:57.640134 140362475977600 main.py:307] Attempt to register of custom name AddN for the second time as class <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>. Note that custom names are case-insensitive. 
 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #55. 
I0816 09:38:57.640599 140362475977600 main.py:308] Traceback (most recent call last):
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/main.py", line 302, in main
    return driver(argv)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/main.py", line 249, in driver
    import_extensions.load_dirs(argv.framework, extensions, get_front_classes)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/import_extensions.py", line 100, in load_dirs
    load_dir(framework, path, get_front_classes)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/import_extensions.py", line 86, in load_dir
    update_registration(internal_dirs

, enabled_transforms, disabled_transforms)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/class_registration.py", line 112, in update_registration
    _update(cls, cls.registered_cls, cls.registered_ops, 'op', enabled_transforms, disabled_transforms)
  File "/home/prateek/Downloads/Notebooks/personal/openvino/model_optimizer/mo/utils/class_registration.py", line 100, in _update
    refer_to_faq_msg(55), k, c)
mo.utils.error.Error: Attempt to register of custom name AddN for the second time as class <class 'extensions.front.tf.elementwise_ext.AddNExtractor'>. Note that custom names are case-insensitive. 
 For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #55. 

These are my python installation in openvino environment, could it be because of version of libraries?
absl-py==0.7.1
astor==0.8.0
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
certifi==2019.6.16
chardet==3.0.4
cycler==0.10.0
Cython==0.29.11
decorator==4.4.0
defusedxml==0.6.0
entrypoints==0.3
gast==0.2.2
google-pasta==0.1.7
grpcio==1.22.0
h5py==2.9.0
idna==2.8
imbalanced-learn==0.5.0
imblearn==0.0
ipykernel==5.1.1
ipython==7.7.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.14.1
Jinja2==2.10.1
joblib==0.13.2
jsonschema==3.0.2
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==6.0.0
jupyter-core==4.5.0
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
Markdown==3.1.1
MarkupSafe==1.1.1
matplotlib==3.1.1
mistune==0.8.4
nbconvert==5.5.0
nbformat==4.4.0
networkx==2.3
nibabel==2.4.1
notebook==6.0.0
numpy==1.16.4
opencv-python==4.1.0.25
pandocfilters==1.4.2
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==6.1.0
prometheus-client==0.7.1
prompt-toolkit==2.0.9
protobuf==3.8.0
ptyprocess==0.6.0
Pygments==2.4.2
pyparsing==2.4.2
pyrsistent==0.15.4
python-dateutil==2.8.0
PyYAML==5.1.1
pyzmq==18.0.2
qtconsole==4.5.2
requests==2.22.0
scikit-learn==0.21.3
scipy==1.3.0
Send2Trash==1.5.0
Shapely==1.6.4.post2
six==1.12.0
tensorboard==1.14.0
tensorflow==1.14.0
tensorflow-estimator==1.14.0
termcolor==1.1.0
terminado==0.8.2
test-generator==0.1.1
testpath==0.4.2
tornado==6.0.3
traitlets==4.3.2
urllib3==1.25.3
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.15.4
widgetsnbextension==3.5.1
wrapt==1.11.2
 

Shubha_R_Intel
Employee
206 Views

Dear khandelwal, prateek,

I double checked, you definitely do need to pass in --tensorflow_use_custom_operations_config  so good job on that. If it is broken with pre-trained for you (not custom trained) then this looks like a Model Optimizer bug.

Let me try it myself. I will report my results back on this forum.

And sorry for the trouble, thanks for your patience !

Shubha

pkhan10
New Contributor I
206 Views

hey shubha..
I found the issue..
In my last question you suggested to update openvino to 2019_R2..
i did update all the files in model optimizer ..but pycache was still there...
as i removed the old version pycache everything started working...
sorry for confusion and thanks for your support
 

Shubha_R_Intel
Employee
206 Views

Dear khandelwal, prateek,

Glad you got everything working and thanks for reporting back to the OpenVino community. Can you clarify this :

as i removed the old version pycache

How did you remove the old version pycache ? You mean the old *.pyc files ?

Thanks,

Shubha

 

pkhan10
New Contributor I
206 Views

pycache are generally contains pre compiled byte code file..
i check all of them are pyc file..
so if i  just delete old pycach and run mo_tf.py file from new version of model optimizer..it will generate new compiled files

anyway shubha... i am facing issue with the converted tensorflow model, its not performing well at all .
i have mentioned it here 
https://software.intel.com/en-us/forums/computer-vision/topic/806219
Can you please check it
 

Shubha_R_Intel
Employee
206 Views

Dear khandelwal, prateek,

I tried watching your mp4 video clips on Windows 10 but they were in a format which is unsupported by either my (Chrome) browser or Windows Media Player.

Most likely  khandelwal, prateek you are missing some pre-processing switches in your Model Optimizer command, related to scaling and mean values. Please do a --h to see what those are. If pre-processing was done on the image prior to training then of course, Model Optimizer must know about it in order to produce proper IR. Even image size (--input_size) is important, i.e. what image size was used to custom-train your Retinanet model ?

Your model optimizer command is:

python mo_tf.py --input_model "/home/prateek/Downloads/Notebooks/personal/openvino/model_files/Retinanet/tf_model/resnet50_coco_best_v2.1.0.pb" --input_shape '[1,480,640,3]' --data_type FP32 --tensorflow_use_custom_operations_config extensions/front/tf/retinanet.json --reverse_input_channels --output_dir ~/Downloads/Notebooks/personal/openvino/model_files/

But it could be missing other switches related to pre-processing. What happens with the pre-trained model rather than your custom-trained model ?

In the example Jupyter Notebook I see the following, 

# preprocess image for network
image = preprocess_image(image)
image, scale = resize_image(image)

Hope it helps,

Thanks,

Shubha

Reply