Article ID: 000090776 Content Type: Error Messages Last Reviewed: 11/13/2023

Unable to Infer Custom Models That Having Dynamic Shapes

Environment

OpenVINO™ 2021.4.2 and earlier

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Migrate to OpenVINO™ API 2.0 to work with dynamic shapes

Description
  • Inferred a custom YOLOv5 but received error:

    RuntimeError: Check 'std::get<0>(valid)' failed at inference/src/ie_core.cpp:1414:
    InferenceEngine::Core::LoadNetwork doesn't support inputs having dynamic shapes. Use ov::Core::compile_model API instead. Dynamic inputs are :{ input:'images,images', shape={?,3,?,?}}

  • Inferred a custom mobilenetV2 but received error:

    RuntimeError: [GENERAL_ERROR] /home/jenkins/agent/workspace/private-ci/ie/build-linux-ubuntu20/b/repos/openvino/inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape.cpp:48 DynamicToStaticShape transformation: got dynamic rank for StatefulPartitionedCall/mobilenetv2_1.00_224/global_average_pooling2d_1/Mean_Squeeze__74 with type Squeeze ver. 0 while only static is supported

Resolution

Related Products

This article applies to 1 products