Binary data for batch normalization test from Torch
authorDmitry Kurtaev <dmitry.kurtaev+github@gmail.com>
Fri, 20 Oct 2017 09:01:42 +0000 (12:01 +0300)
committerDmitry Kurtaev <dmitry.kurtaev+github@gmail.com>
Fri, 20 Oct 2017 09:01:42 +0000 (12:01 +0300)
modules/dnn/test/test_torch_importer.cpp
samples/dnn/resnet_ssd_face_python.py

index d83c203..8c894ae 100644 (file)
@@ -169,7 +169,7 @@ TEST(Torch_Importer, run_deconv)
 
 TEST(Torch_Importer, run_batch_norm)
 {
-    runTorchNet("net_batch_norm");
+    runTorchNet("net_batch_norm", DNN_TARGET_CPU, "", false, true);
 }
 
 TEST(Torch_Importer, net_prelu)
index 922dd9b..f7d88ec 100644 (file)
@@ -24,7 +24,7 @@ if __name__ == '__main__':
         cols = frame.shape[1]
         rows = frame.shape[0]
 
-        net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), False))
+        net.setInput(dnn.blobFromImage(frame, 1.0, (inWidth, inHeight), (104.0, 177.0, 123.0), False, False))
         detections = net.forward()
 
         perf_stats = net.getPerfProfile()