Hello,
I am using a yolov4 tiny model that has an input shape of [1,800,800,3]
and BGR input. The output shape is [1,50,50,30]
and [1,25,25,30]
. When I converted my .onnx file to .blob, I used "--reverse_input_channels", "--layout=nhwc"
.
This does however not change the layout immediately. I guess the default layout is nchw. That leads to following error messages:

I am not able to convert my input shape immediately with layout=nhwc->nchw
because you can't combine a layout switch with --reverse_input_channels
as far as I know so the warning in the screenshot will persist. However, I thought that when the image gets sent from the camera to the neural network, the shape of the image gets changed before being inputted into the neural network. Is that not correct?
Also, I am not exactly sure how to solve the second error message. It sees this output shape [1,50,50,30] as width 30 even though thats just number of anchors * bounding box infos and class prob.
My anchor settings are:
detectionNetwork.setAnchors([23, 27, 37, 58, 81, 82, 81, 82, 135, 169, 344, 319])
detectionNetwork.setAnchorMasks({"side50": [0, 1, 2], "side25": [3, 4, 5]})
Thanks for the help!