Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#dldt i was trying to convert tensorflow fastercnn frozengraph.pb which i trained with custom data to modeloptimizer ir file i am getting this error #7

Closed
manoj652 opened this issue Nov 12, 2018 · 4 comments

Comments

@manoj652
Copy link

manoj652 commented Nov 12, 2018

#dldt The Preprocessor block has been removed. Only nodes performing mean value subtraction and scaling (if applicable) are kept.
[ ERROR ] Found the following nodes '[]' with name 'swapped_proposals' but there should be exactly 1. Looks like ObjectDetectionAPIProposalAndROIPoolingReplacement replacement didn't work.

@manoj652 manoj652 changed the title i was trying to convert fastercnn frozengraph.pb which i trained with custom data to modeloptimizer ir file i am getting this error i was trying to convert tensorflow fastercnn frozengraph.pb which i trained with custom data to modeloptimizer ir file i am getting this error Nov 12, 2018
@manoj652 manoj652 changed the title i was trying to convert tensorflow fastercnn frozengraph.pb which i trained with custom data to modeloptimizer ir file i am getting this error #dldt i was trying to convert tensorflow fastercnn frozengraph.pb which i trained with custom data to modeloptimizer ir file i am getting this error Nov 12, 2018
@lazarevevgeny
Copy link

@manoj652 Looks like the sub-graph replacement configuration file that you specified with the --tensorflow_object_detection_api_pipeline_config command line parameter is not suitable for your version of the FasterRCNN topology. Could you re-run the Model Optimizer with the --log_level DEBUG command line option and attach the log file?

@manoj652
Copy link
Author

manoj652 commented Nov 18, 2018

#dldt @lazarevevgeny

--log_level DEBUG
SecondStagePostprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/ChangeCoordinateFrame/truediv_1/mul_
SecondStagePostprocessor/scale_logits/reciprocal_
SecondStagePostprocessor/scale_logits/mul_
[ ERROR ] Found the following nodes '[]' with name 'swapped_proposals' but there should be exactly 1. Looks like ObjectDetectionAPIProposalAndROIPoolingReplacement replacement didn't work.
[ 2018-11-15 21:55:55,244 ] [ DEBUG ] [ main:327 ] Traceback (most recent call last):
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/main.py", line 321, in main
return driver(argv)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/main.py", line 263, in driver
mean_scale_values=mean_scale)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/pipeline/tf.py", line 171, in tf2nx
class_registration.apply_replacements(graph, class_registration.ClassType.FRONT_REPLACER)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/utils/class_registration.py", line 102, in apply_replacements
replacer.find_and_replace_pattern(graph)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/front/tf/replacement.py", line 91, in find_and_replace_pattern
self.replace_sub_graph(graph, match)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/mo/front/common/replacement.py", line 115, in replace_sub_graph
new_sub_graph = self.generate_sub_graph(graph, match)
File "/home/manojvasi/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/extensions/front/tf/ObjectDetectionAPI.py", line 261, in generate_sub_graph
format(proposal_nodes_ids))
mo.utils.error.Error: Found the following nodes '[]' with name 'swapped_proposals' but there should be exactly 1. Looks like ObjectDetectionAPIProposalAndROIPoolingReplacement replacement didn't work.

@snosov1
Copy link
Contributor

snosov1 commented Feb 19, 2019

Is this still relevant or we can close?

@snosov1
Copy link
Contributor

snosov1 commented Mar 29, 2019

Please, reopen, if necessary.

@snosov1 snosov1 closed this as completed Mar 29, 2019
IRDonch pushed a commit that referenced this issue Jul 29, 2019
fzhar referenced this issue in fzhar/open_model_zoo Nov 11, 2020
IRDonch pushed a commit that referenced this issue Apr 20, 2021
wdkwyf pushed a commit to wdkwyf/open_model_zoo that referenced this issue Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants