1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 11:33:26 +08:00

Fixed bugs after dnn refactoring. Added new tests for layers (#1142)

* Fixed bugs after dnn refactoring. Added new tests for layers

* Fixed torch tests
This commit is contained in:
Aleksandr Rybnikov
2017-05-10 18:02:44 +03:00
committed by Maksim Shabunin
parent c42beb4c34
commit 3b01eaa3d8
12 changed files with 242 additions and 35 deletions

View File

@@ -72,7 +72,7 @@ static void launchGoogleNetTest()
inpMats.push_back( imread(_tf("googlenet_1.jpg")) );
ASSERT_TRUE(!inpMats[0].empty() && !inpMats[1].empty());
net.setBlob(".data", blobFromImages(inpMats, 1.));
net.setBlob(".data", blobFromImages(inpMats, 1., false));
net.forward();
Mat out = net.getBlob("prob");