Merge pull request #9890 from dkurt:fix_torch_test

pull/9903/head
Alexander Alekhin 7 years ago
commit 276459e57e
  1. 2
      modules/dnn/test/test_torch_importer.cpp
  2. 2
      samples/dnn/resnet_ssd_face_python.py

@ -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)

@ -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()

Loading…
Cancel
Save