I'm using the sample code "object_detection_demo_yolov3_async" and trying to reshape the input size of the network by adding the code below.
SizeVector input_dims = input->getInputData()->getTensorDesc().getDims(); printf("input dims[%d,%d,%d,%d]\n", input_dims, input_dims, input_dims, input_dims); std::map<std::string, SizeVector> input_shapes; input_shapes[inputName] = input_dims; netReader.getNetwork().reshape(input_shapes);
I just take the input size from the network and reshape the "same" shape. I got the error [ ERROR ] Dims and format are inconsistent.
The model is convert by following the steps from Openvino documentation.
Anyone can help me to solve this error?
Dear Jack, may I know what device you're running inference on ? Also I assume that you have not loaded the network anywhere in code yet ? According to this forum post reshapes should always occur BEFORE the network is loaded to the plugin.