Problem in loading a caffe model
This post is a continuation from this issue, https://github.com/opencv/opencv/issu....
As suggested by @dkurt, I managed to load a caffe model with multiple outputs, the prototxt is given here, https://github.com/qiexing/face-landm...
However, when I tried to read my own prototxt again, same error occured.
int ngroups = inpCn / blobs[0].size[1]; >> 0
printf("blobs[0].size[1]: %d", blobs[0].size[1]); >> 3
printf("inpCn % ngroups: %d", inpCn % ngroups); >> 0, integer division by zero, program break here
printf("outCn % ngroups: %d", outCn % ngroups);
CV_Assert(inpCn % ngroups == 0 && outCn % ngroups == 0);
May I know the possible reason for this error?
Thanks.
@simon5u please show us a code that loads and runs the model. Thanks!
@dkurt, I found the problem, the input channel and prototxt definition is different. It was my mistake. Thanks for the support.