1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Ceil mode from experimental version of Caffe, https://github.com/BVLC/caffe/pull/3057

This commit is contained in:
Dmitry Kurtaev
2017-10-16 15:43:28 +03:00
parent 1563300197
commit b903ff8992
4 changed files with 275 additions and 156 deletions
+17
View File
@@ -234,4 +234,21 @@ TEST(Reproducibility_Colorization, Accuracy)
normAssert(out, ref, "", l1, lInf);
}
TEST(Reproducibility_DenseNet_121, Accuracy)
{
const string proto = findDataFile("dnn/DenseNet_121.prototxt", false);
const string model = findDataFile("dnn/DenseNet_121.caffemodel", false);
Mat inp = imread(_tf("dog416.png"));
inp = blobFromImage(inp, 1.0 / 255, Size(224, 224));
Mat ref = blobFromNPY(_tf("densenet_121_output.npy"));
Net net = readNetFromCaffe(proto, model);
net.setInput(inp);
Mat out = net.forward();
normAssert(out, ref);
}
}