Layers for OpenFace face recognition network

This commit is contained in:
Dmitry Kurtaev
2017-08-28 17:37:09 +03:00
parent 8a094a5f54
commit 7dc6b1d7d4
10 changed files with 328 additions and 34 deletions

View File

@@ -187,7 +187,7 @@ public:
}
int ngroups = inpCn / blobs[0].size[1];
CV_Assert(inpCn % ngroups == 0 && outCn % ngroups == 0);
CV_Assert(ngroups > 0 && inpCn % ngroups == 0 && outCn % ngroups == 0);
int dims[] = {inputs[0][0], outCn, out.height, out.width};
outputs.resize(inputs.size(), shape(dims));