When I change the input size of my model when converting to blob, I run into a weird issue.
When I load and run the model with depthai it only outputs the same label, no matter what the camera sees. When I converted the model to blob without specifying an input shape, it worked fine. The reason I'm setting an input shape is because my images are 450x450 while the model takes 640x640 seemingly.
Is there an issue with how I specified the input shape here? My model is the yolo model, I'm fairly confident it's nhwc in shape, but I force converted it from nchw to nhwc too and this didn't make a difference.
My code:
shape = [1, 3, 450, 450]
blob_path = blobconverter.from_onnx(
model="./March8Model.onnx",
data_type="FP16",
shaves=5,
optimizer_params=[
f"--input_shape={shape}", #setting shape might be a mistake it keeps saying grate, to investigate
]
)