How is the model script function resize supposed to work, should you be able to make inference on any image resolution when resize is done on the input layer?
have compiled both a yolov5 and yolov8 with resize to 640x480 but when i do inference with the emulator and model_compiled.har I get the error:
ValueError: Input 0 of layer “model/input_layer1” is incompatible with the layer: expected shape=(None, 480, 640, 3), found shape=(None, 486, 648, 3)
Have also tried the model.hef on HW but get similar errors:
[HailoRT] [error] CHECK failed - write size 944784 must be 921600
Here is the model script for yolov5
normalization1 = normalization([0.0, 0.0, 0.0], [255.0, 255.0, 255.0])
resize_input1 = resize(resize_shapes=[480,640])
change_output_activation(sigmoid)
nms_postprocess(meta_arch=yolov5, nms_scores_th=0.2, nms_iou_th=0.6, engine=nn_core)
model_optimization_config(calibration, batch_size=16, calibset_size=512)