Skip to content

Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "Unsqueeze_254" node. #4

Open
@munkeops

Description

@munkeops

Hey so i did the exact thing as what you mentioned but , faced the above issue, attaching logs -

Model Optimizer arguments:
Common parameters:
- Path to the Input Model: C:\Users\Rohan\Desktop\openvinotesting\yolov5s.onnx
- Path for generated IR: C:\Users\Rohan\Desktop\openvinotesting\yolov5_onnx
- IR output name: yolov5s
- 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: FP32
- Enable fusing: True
- Enable grouped convolutions fusing: True
- Move mean values to preprocess section: None
- Reverse input channels: False
ONNX specific parameters:
- Inference Engine found in: C:\Program Files (x86)\Intel\openvino_2021\python\python3.8\openvino
Inference Engine version: 2021.4.1-3926-14e67d86634-releases/2021/4
Model Optimizer version: 2021.4.1-3926-14e67d86634-releases/2021/4
[ ERROR ] The ExpandDims node Unsqueeze_254 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_256 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_258 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_293 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_307 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_309 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_311 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_346 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_360 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_362 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_364 has more than 1 input
[ ERROR ] The ExpandDims node Unsqueeze_399 has more than 1 input
[ ERROR ] Cannot infer shapes or values for node "Unsqueeze_254".
[ ERROR ] Wrong number of inputs to the layer Unsqueeze_254
[ ERROR ]
[ ERROR ] It can happen due to bug in custom shape infer function <function ExpandDims.infer at 0x000001E4FEB3D280>.
[ 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 ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "Unsqueeze_254" node.
For more information please refer to Model Optimizer FAQ, question #38. (https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html?question=38#question-38)

the link mentioned here dosent really explain the issue. Trying this on a window machine, tried it with direct installation as well as docker image.

the link here - openvinotoolkit/openvino#1287 mentions that yolov5 is not supported and hence the issue.

I did try to export the pt file to pb instead and then did the conversion, the results were absolutely bad.

Let me know what you think about this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions