Article ID: 000095835 Content Type: Error Messages Last Reviewed: 07/31/2023

RuntimeError: Check ‘False’ Failed at Src/Core/Src/Runtime/ov_tensor.cpp:67: Dims and Format Are Inconsistent

Environment

OpenVINO™ toolkit 2023.0.1 Python 3.8.10

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to avoid dims and format inconsistency while running inference with OpenVINO™ toolkit

Description

Trying to run my inference application in OpenVINO™ fails with the following error:
RuntimeError: Check 'false' failed at src/core/src/runtime/ov_tensor.cpp:67:
Dims and format are inconsistent.

Resolution
  • Verify the shape of the input data matches the input shape of the model.
  • Verify the layout of the input data matches the input layout of the model.
Additional information

The error comes from a shape mismatch between the input of your model and the input data being fed to the model. You need to perform pre-process on input data like image resizing and/or transposing to match the input shape and layout of the model.

Related Products

This article applies to 1 products