Skip to content

Commit 2476dac

Browse files
committed
update all local change before rebase
1 parent d92236b commit 2476dac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/saliency/src/DeepGaze1.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <opencv2/dnn.hpp>
66
#include <opencv2/imgproc.hpp>
77
#include <opencv2/highgui.hpp>
8-
#include "precomp.hpp"
8+
#include <opencv2/saliency.hpp>
99
#include <vector>
1010
#include <cmath>
1111
#include <string>
@@ -59,8 +59,10 @@ vector<Mat> DeepGaze1::featureMapGenerator(Mat img, Size input_size)
5959

6060
resize(img, img, input_size, 0, 0, INTER_AREA);//hard coded
6161
Mat inputBlob = blobFromImage(img); //Convert Mat to batch of images
62-
net.setBlob(".data", inputBlob); //set the network input
63-
net.forward(); //compute output
62+
net.setInput(inputBlob, "data");
63+
net.forward();
64+
//net.setBlob(".data", inputBlob); //set the network input
65+
//net.forward(); //compute output
6466
for(unsigned i = 0; i < layers_names.size(); i++)
6567
{
6668
Mat blob_set = net.getBlob(layers_names[i]);

0 commit comments

Comments
 (0)