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

Detectnet model error in Model Optimiser

GMath7
Beginner
1,876 Views

We have a Detectnet model as described in the link below, and we are trying to convert our caffemodel to IR representation(xml and bin file) using Model Optimiser as described in https://software.intel.com/en-us/articles/OpenVINO-Using-Caffe

Detectnet architecture used is given as per this link. https://devblogs.nvidia.com/deep-learning-object-detection-digits/

But while converting the model, we are getting some errors. If anyone have tried converting Detectnet, could you please help me out in doing the same. I guess Detectnet is supported in Model Optimiser.

Requesting your help asap

 

0 Kudos
15 Replies
Severine_H_Intel
Employee
1,876 Views

Dear Gina,

I have worked on Detectnet. The issue is that DIGITS is wrapping a standard topology (GoogleNet) that we support with custom layers for post-processing that are not included in standard Caffe. For example, the layer called cluster layer is not a standard caffe layer. 

In order to help you better, can you copy here the error you get with the Model Optimizer?

For the Detectnet I converted, only one layer (this cluster layer) was not supported and as it was the final layer only doing post-processing (no weight associated), you could simply delete it from the prototxt file. However, you will need to post-process the values by yourself by re-implementing the cluster function in C++ or Python after the inference is finished. 

 

Best, 

Severine

0 Kudos
GMath7
Beginner
1,877 Views

Thanks Severine for the reply.

As per your suggestion we deleted the cluster layer from deploy.protoxt and executed mo.py script. It ran successfully we were able to generate xml and bin files. From your reply, I understand that we need to reimplement the cluster function. Do you have any sample python code/link which will help us in implementing the same.

Requesting your help asap

0 Kudos
Severine_H_Intel
Employee
1,877 Views

Dear Gina, 

I sent you a PM for the solution.

Best, 

Severine

0 Kudos
GMath7
Beginner
1,877 Views

Dear Severine,

Thank you for your reply. I did according to your comments. Removed the custom layer of detectnet and I was able to get IR representation of my caffe model using the code line adding below.

And I have done post-processing of clustering section during inference. But the covereage out from IR, I am getting is wrong. Hence I am getting numerous mis-detections.

sudo python3 mo.py --input_model <path to caffemodel> --input_proto <path to deploy.prototxt>  --mean_file <path to mean.binaryproto> --reverse_input_channels

Is there anything I am missing out or whether my IR conversion is done right?

 

0 Kudos
Severine_H_Intel
Employee
1,877 Views

Dear Gina, 

I dont think you need to use  --reverse_input_channels.  This might help.

Best, 

Severine

0 Kudos
GMath7
Beginner
1,877 Views

Dear Severine,

Thank you for your timely support. It worked!

 

 

0 Kudos
Tegwyn_Twmffat
New Contributor I
1,877 Views

Hello!

I'm also trying to optimise a DetectNet model. I'm getting error: 'Possible reason is wrong channel number in input shape' ..... How do i fix this? Details of error are below:

DetectNet prototext and full debug info attached.

 

tegwyn@twmffat2:/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/model_optimizer$ python3 mo_caffe.py --data_type=FP16 --input_model /media/tegwyn/2037-F6FA/wasp/wasp_train_rate_0point000025/snapshot_iter_54860.caffemodel
Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:     /media/tegwyn/2037-F6FA/wasp/wasp_train_rate_0point000025/snapshot_iter_54860.caffemodel
    - Path for generated IR:     /opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/model_optimizer/.
    - IR output name:     snapshot_iter_54860
    - 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:     FP16
    - Enable fusing:     True
    - Enable grouped convolutions fusing:     True
    - Move mean values to preprocess section:     False
    - Reverse input channels:     False
Caffe specific parameters:
    - Enable resnet optimization:     True
    - Path to the Input prototxt:     /media/tegwyn/2037-F6FA/wasp/wasp_train_rate_0point000025/snapshot_iter_54860.prototxt
    - Path to CustomLayersMapping.xml:     Default
    - Path to a mean file:     Not specified
    - Offsets for a mean file:     Not specified
Model Optimizer version:     1.5.12.49d067a0
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_359'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_401'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_376'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_303'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_332'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_357'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_162'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_388'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_198'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_250'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_319'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_377'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_397'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_173'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_172'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_402'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_404'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_356'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_155'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_368'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_243'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_391'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_179'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_240'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_372'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_236'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_165'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_267'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_395'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_331'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_207'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_203'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_151'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_169'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_380'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_300'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_307'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_213'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_310'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_185'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_177'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_296'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_335'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_247'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_246'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_208'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_163'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_343'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_371'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_360'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_211'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_306'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_342'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_384'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_166'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_379'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_369'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_226'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_254'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_271'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_154'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_189'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_249'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_225'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_354'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_353'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_232'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_170'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_176'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_398'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_346'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_188'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_350'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_274'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_286'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_285'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_318'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_239'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_266'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_242'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_322'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_272'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_366'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_192'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_263'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_210'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_237'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_282'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_334'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_365'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_383'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_321'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_191'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_281'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_345'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_314'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_351'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_394'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_275'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_197'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_389'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_180'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_233'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_340'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_313'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_304'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_301'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_202'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_297'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_184'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_392'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_264'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_214'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_339'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_405'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_311'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_255'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_359'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_401'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_376'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_303'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_332'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_357'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_162'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_388'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_198'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_250'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_319'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_377'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_397'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_173'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_172'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_402'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_404'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_356'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_155'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_368'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_243'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_391'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_179'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_240'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_372'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_236'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_165'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_267'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_395'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_331'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_207'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_203'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_151'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_169'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_380'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_300'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_307'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_213'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_310'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_185'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_177'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_296'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_335'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_247'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_246'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_208'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_163'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_343'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_371'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_360'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_211'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_306'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_342'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_384'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_166'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_379'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_369'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_226'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_254'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_271'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_154'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_189'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_249'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_225'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_354'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_353'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_232'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_170'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_176'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_398'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_346'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_188'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_350'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_274'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_286'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_285'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_318'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_239'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_266'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_242'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_322'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_272'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_366'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_192'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_263'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_210'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_237'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_282'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_334'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_365'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_383'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_321'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_191'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_281'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_345'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_314'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_351'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_394'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_275'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_197'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_389'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_180'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_233'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_340'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_313'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_304'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_301'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_202'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_297'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_184'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_392'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_264'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_214'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_339'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_405'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_311'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_255'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_359'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_401'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_376'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_303'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_332'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_357'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_162'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_388'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_198'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_250'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_319'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_377'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_397'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_173'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_172'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_402'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_404'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_356'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_155'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_368'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_243'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_391'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_179'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_240'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_372'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_236'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_165'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_267'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_395'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_331'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_207'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_203'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_151'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_169'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_380'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_300'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_307'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_213'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_310'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_185'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_177'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_296'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_335'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_247'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_246'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_208'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_163'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_343'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_371'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_360'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_211'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_306'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_342'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_384'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_166'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_379'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_369'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_226'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_254'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_271'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_154'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_189'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_249'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_225'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_354'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_353'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_232'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_170'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_176'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_398'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_346'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_188'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_350'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_274'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_286'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_285'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_318'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_239'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_266'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_242'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_322'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_272'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_366'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_192'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_263'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_210'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_237'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_282'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_334'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_365'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_383'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_321'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_191'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_281'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_345'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_314'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_351'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_394'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_275'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_197'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_389'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_180'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_233'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_340'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_313'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_304'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_301'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_202'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_297'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_184'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_392'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_264'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_214'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_339'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_405'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_311'
[ ERROR ]  Found bad shape: '[0]' for node 'embedded_input_255'
[ ERROR ]  Size of weights 0 does not match kernel shape: [64  3  7  7]
    Possible reason is wrong channel number in input shape

[ ERROR ]  Cannot infer shapes or values for node "conv1/7x7_s2".
[ ERROR ]  Cannot reshape weights to kernel shape
[ ERROR ]  
[ ERROR ]  It can happen due to bug in custom shape infer function <function Convolution.infer at 0x7fe14afec048>.
[ ERROR ]  Or because the node inputs have incorrect values/shapes.
[ ERROR ]  Or because input shapes are incorrect (embedded to the model or passed via --input_shape).
[ ERROR ]  Run Model Optimizer with --log_level=DEBUG for more information.
[ ERROR ]  Stopped shape/value propagation at "conv1/7x7_s2" node.
 For more information please refer to Model Optimizer FAQ (<INSTALL_DIR>/deployment_tools/documentation/docs/MO_FAQ.html), question #38.
tegwyn@twmffat2:/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/model_optimizer$

0 Kudos
Tegwyn_Twmffat
New Contributor I
1,877 Views

Seems like it is a problem with my model as: DetectNet-COCO-Dog/snapshot_iter_38600.caffemodel  from the Nvidia model zoo optimises fine. Whatever can it be?

0 Kudos
Tegwyn_Twmffat
New Contributor I
1,877 Views

So now that I have got a detectNet model to test with openVino, how do I perform inference with it?

0 Kudos
Shubha_R_Intel
Employee
1,877 Views

Dear Tegwyn, kindly study examples here:

deployment_tools\inference_engine\samples

detectnet is an object detection model so focus on those.

Thanks for using OpenVino !

Shubha

0 Kudos
Tegwyn_Twmffat
New Contributor I
1,877 Views

OK, thanks for reply.

0 Kudos
SKT
Beginner
1,877 Views

I want to use DETECTNET on OPENVINO. I have successfully deleted the cluster layer and generated xml and bin files. However, I was unable to implement the functionality of the cluster layer and I could not infer. Please tell me the inference C++ sample code or link.

0 Kudos
SKT
Beginner
1,877 Views

I want to use Detectnet with OpenVINO.

I removed the Cluster layer and created xml and bin files using Model Optimizer.

However, the implemented Cluster function does not work properly by inference.

Please give C++ sample code to infer Detectnet.

0 Kudos
Severine_H_Intel
Employee
1,877 Views

Hi SKT, 

I send you a PM with a link where to find a sample code.

Best, 

Severine

0 Kudos
Reply