Ask Your Question

Revision history [back]

Problem in loading caffe model

This post is a continuation from this issue, https://github.com/opencv/opencv/issues/10234.

As suggested by @dkurt, I managed to load a caffe model with multiple outputs, the prototxt is given here, https://github.com/qiexing/face-landmark-localization/blob/master/model/deploy.prototxt

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.