Ask Your Question

Revision history [back]

dnn forward Mat size and dimensions are wierd

I am running the OpenCV demo dnn code from here:
https://docs.opencv.org/trunk/d5/de7/tutorial_dnn_googlenet.html
However, when I do the forward pass:
Mat prob = net.forward();
prob has the following attributes:
prob.dims 2
prob.channels: 1
prob.rows: 1
prob.cols 1000
prob.depth: 5
prob.size[0]: 1
prob.size[1]: 1000
prob.size[2]: 213147712
prob.size[3]: 277

In most examples, to find he coordinates, it loops through prob.size[2], which in my case is 21347712!

Any ideas what's going on?