• Compiling model for RVC3: Interpolate node has unsupported number of inputs '3'

I have a model that works on on OAK-D, based on YOLOv7-tiny, but having trouble compiling for RVC3. Following the instructions here. Error is:

root@keembay:~/Downloads# /opt/openvino/tools/compile_tool/compile_tool -d VPUX.3400 -m model.xml -ip U8  -ov_api_1_0
OpenVINO Runtime version ......... 2022.1.0
Build ........... 2022.1.0-7080-6582ec65d78-releases/2022/1
Network inputs:
    images : U8 / NCHW
Network outputs:
    boxes.0 : FP32 / CHW
    classes : FP32 / CHW
    max_score : FP32 / CHW

Callback signal handler installed

Opening XLink Device File
nGraph Interpolate node '/model.39/Resize' has unsupported number of inputs '3'

The layer in question:

<layer id="282" name="/model.39/Resize" type="Interpolate" version="opset4">
			<data mode="nearest" shape_calculation_mode="scales" coordinate_transformation_mode="asymmetric" nearest_mode="floor" antialias="false" pads_begin="0, 0, 0, 0" pads_end="0, 0, 0, 0" cube_coeff="-0.75" />
			<input>
				<port id="0" precision="FP32">
					<dim>1</dim>
					<dim>128</dim>
					<dim>15</dim>
					<dim>15</dim>
				</port>
				<port id="1" precision="I64">
					<dim>4</dim>
				</port>
				<port id="2" precision="FP32">
					<dim>4</dim>
				</port>
			</input>
			<output>
				<port id="3" precision="FP32" names="/model.39/Resize_output_0">
					<dim>1</dim>
					<dim>128</dim>
					<dim>30</dim>
					<dim>30</dim>
				</port>
			</output>
		</layer>

In opset4 the inputs of Interpolate increased to 4, but it's not clear what the compiler is expecting here. Also unclear as to why this worked for RVC2—did it know how to interpret the Interpolate layer properly?

23 days later

Trying again at this…

My best guess is that compile_tool is looking for the 4th input to be specified, even though it's marked as optional in the API. I presume this is a bug with OV 2022.1.0.

I tried to modify the XML to use the 2-input version, but realize that I would need to change the .bin file as well, which I don't understand how to do. My best guess is to modify the ONNX file instead, but haven't figured that out yet.

Might try OV 2021 to see if that works any better.

OpenVINO 2021.4 does indeed get farther, but now hitting a new error, that compile_tool only supports tensors of rank 4, not 5. Will open a new issue

    Hi abroekhof , seems like it would be best to create an issue on openvino github, just note that you likely won't get any resposne, as they already dropped support for this chip (keembay, aka rvc3). I believe it would be easier to try a different arch, I believe we successfully compiled yolov6 to run on rvc3.