Hi, I’m also trying to work with opencv and onnx. For the input layer, I used the flag " --inputs-as-nchw" of tf2onnx. Then the dataset would match the format produced by blobFromImage (nchw-format). I wonder if the input layer in really 3d or should be 4d? (You could check with GitHub - lutzroeder/netron: Visualizer for neural network, deep learning, and machine learning models the input and output shapes of your model)
2 Likes