Hi guys!
I have a custom stereo model that expects input shape [1, 576, 960, 1] for both 'left' and 'right' inputs. I use OAK 4 stereo camera. I exported it from onnx to dlc. However I noticed that the output depth was garbage, yet I still found some correlation with the input pair. I asked an AI which figured out that my imgFrame with row width = 960 gets aligned to 1024 (i.e. stride is reported as 1024 instead of 960). Effectivelly this means that every rows is padded with 64 bytes. Yet the neural node consumes 576*960 successive bytes, which means that the whole input image is sheared due to padded 64 bytes.
I am attaching a .zip that includes: imgFrame-neuralNode-mre.py, model.dlc, left.png and right.png. You can inspect and re-run it to programatically see what I am talking about.
Questions:
1. Is ImgFrame row stride padded to a 128-byte (or other) multiple on device?
2. Is there a supported way to feed a 960-wide ImgFrame, or must the model
input width be a multiple of the alignment?
I now know that the input resoultion needs to be 128 byte aligned, but I would still like to hear Luxonis's view on this. In my opinion, requirement for the image width to be 128 byte aligned is quite rough.

