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.
6392 Discussions

TF ssdv2 to IRv10 error: "Preprocessor/mul" has 2 producers

Tr__Ra
New Contributor I
2,272 Views

Hello, this is the first time I get this error. Last week it was working.

I tried both 20.01 and 20.03.

See below for command and error. Thanks!

    python /opt/intel/openvino_2020.3.194/deployment_tools/model_optimizer/mo.py \
    --input_model frozen_inference_graph.pb \
    --tensorflow_use_custom_operations_config /opt/intel/openvino_2020.3.194/deployment_tools/model_optimizer/extensions/front/tf/ssd_v2_support.json \
    --tensorflow_object_detection_api_pipeline_config pipeline.config \
    --reverse_input_channels \
    --output_dir ./frozen_model \
    --data_type FP16\

Output:

[ ERROR ]  Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.front.ChangePlaceholderTypes.ChangePlaceholderTypes'>): Something bad has happened with graph! Data node "Preprocessor/mul" has 2 producers

 

0 Kudos
1 Solution
Tr__Ra
New Contributor I
2,167 Views

The error comes from TF Obj Det API. Use models/research github version prior to july 1st. Their latest commit l.eads to this error.

View solution in original post

0 Kudos
6 Replies
Max_L_Intel
Moderator
2,241 Views

Hi @Tr__Ra 

Have you ever successfully converted this exact frozen_inference_graph.pb model or are you doing this for the first time?

If you already did this, then please ensure that your TF frozen model did not get corrupted after that and that you correctly provide Model Optimizer conversion command, as per the example below:

<INSTALL_DIR>/deployment_tools/model_optimizer/mo_tf.py --input_model=/tmp/ssd_inception_v2_coco_2018_01_28/frozen_inference_graph.pb --transformations_config <INSTALL_DIR>/deployment_tools/model_optimizer/extensions/front/tf/ssd_v2_support.json --tensorflow_object_detection_api_pipeline_config /tmp/ssd_inception_v2_coco_2018_01_28/pipeline.config --reverse_input_channels

If you do this for the first time, then please specify if this is publicly available model (e.g. from Open Model Zoo) or custom trained one (topology used, TF Object Detection API version, etc.)

Thanks.
Best regards, Max.

0 Kudos
Tr__Ra
New Contributor I
2,239 Views

yes i have until last week.

Seems to be a problem with obj det model coming from training using obj det api.

Models that i train in colab now produce the error above.

Models from a week or so or older convert successfully.

0 Kudos
Max_L_Intel
Moderator
2,225 Views

Hi @Tr__Ra 

Okay, so then it was not exactly the same model's instance, but different instance of the same topology.
In that case please check for changes that you did to model training process (configuration, TF API version, etc.) in order to isolate the rootcause.

Thank you.

0 Kudos
Kamma__Vijayakumar
2,202 Views

Even i am facing the same issue. I have not changed any training pipeline and all. only i have increased the amount of data. Not sure exactly.

Please help !!

 

[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.front.ChangePlaceholderTypes.ChangePlaceholderTypes'>): Something bad has happened with graph! Data node "Preprocessor/mul" has 2 producers 

0 Kudos
Max_L_Intel
Moderator
2,171 Views

Hi @Kamma__Vijayakumar 

Please create new topic in this forum section and provide all the available details including information that I requested here earlier (if this is publicly available model or custom trained one, what is topology used, TensorFlow Object Detection API version).

Thanks.
Best regards, Max.

0 Kudos
Tr__Ra
New Contributor I
2,168 Views

The error comes from TF Obj Det API. Use models/research github version prior to july 1st. Their latest commit l.eads to this error.

0 Kudos
Reply