Problem in loading a caffe model

asked 2017-12-06 23:30:53 -0500

This post is a continuation from this issue,

As suggested by @dkurt, I managed to load a caffe model with multiple outputs, the prototxt is given here,

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?


edit retag flag offensive close merge delete


@simon5u please show us a code that loads and runs the model. Thanks!

dkurt gravatar imagedkurt ( 2017-12-07 03:03:34 -0500 )edit

@dkurt, I found the problem, the input channel and prototxt definition is different. It was my mistake. Thanks for the support.

simon5u gravatar imagesimon5u ( 2017-12-07 18:05:11 -0500 )edit