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

FusedBatchNormV3 (72), Part of the nodes was not converted to IR. Stopped. #352

Closed
AadeIT opened this issue Dec 25, 2019 · 3 comments
Closed

Comments

@AadeIT
Copy link

AadeIT commented Dec 25, 2019

[ ERROR ] List of operations that cannot be converted to Inference Engine IR:
[ ERROR ] FusedBatchNormV3 (72)
[ ERROR ] detector/darknet-53/Conv/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_1/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_2/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_3/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_4/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_5/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_6/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_7/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_8/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_9/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_10/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_11/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_12/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_13/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_14/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_15/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_16/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_17/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_18/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_19/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_20/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_21/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_22/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_23/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_24/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_25/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_26/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_27/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_28/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_29/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_30/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_31/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_32/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_33/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_34/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_35/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_36/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_37/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_38/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_39/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_40/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_41/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_42/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_43/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_44/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_45/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_46/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_47/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_48/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_49/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_50/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/darknet-53/Conv_51/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_1/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_2/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_3/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_4/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_7/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_8/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_9/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_10/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_11/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_12/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_13/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_15/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_16/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_17/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_18/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_19/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_20/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_21/BatchNorm/FusedBatchNormV3
[ ERROR ] detector/yolo-v3/Conv_5/BatchNorm/FusedBatchNormV3
[ ERROR ] Part of the nodes was not converted to IR. Stopped.
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #24.


this is code
please,help me

@dkurt
Copy link
Contributor

dkurt commented Dec 30, 2019

In our experiment here FusedBatchNormV3 implementation does not lead to accuracy drop if we assume that this is the same as FusedBatchNorm. So I'd like to recommend you to use lower version of TensorFlow (please try 1.13.0 for example) or try to add something like

'FusedBatchNormV3': node_pb_arg(tf_fused_bn_extractor),

here: https://github.com/opencv/dldt/blob/fe3f978b98c86eaeed3cbdc280e1ffd0bc50d278/model-optimizer/mo/front/tf/extractor.py

@ArtemSkrebkov
Copy link

I followed @dkurt suggestion and added a patch for MO to treat FusedBatchNormV3 as FusedBatchNorm. Works fine for me. Please check it out, might be helpful for your case:
https://github.com/ArtemSkrebkov/dldt/tree/askrebko/treat_bnv3_as_bn

@lazarevevgeny
Copy link
Contributor

The bug has been fixed already and it is in the master branch. Closing.

redradist pushed a commit to redradist/openvino that referenced this issue Oct 6, 2023
* Reduce MaxPoolV8 to MaxPoolV1 where possible
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

4 participants