Hello!
I've been trying to run a face detector by using FaceBoxes (https://github.com/zeusees/FaceBoxes) by creating a network via the use of readNetFromCaffe and prototext, caffemodel available there. But when I try to obtain the output of the 'net' I create I run into the following issue;
String modelConfiguration = "D:/USERDATA/VUT58IL/FaceBoxes-master/FaceBoxes-master/faceboxes_deploy.prototxt";
String modelBinary = "D:/USERDATA/VUT58IL/FaceBoxes-master/FaceBoxes-master/FaceBoxes_1024x1024.caffemodel";
dnn::Net net = readNetFromCaffe(modelConfiguration, modelBinary);
vector<String> layers = net1.getLayerNames();
for (int i = 0; i < layers.size(); i++)
{
cout << layers[i] << endl;
}
Mat img = imread("D:/USERDATA/VUT58IL/Faces/Male/3.jpg");
resize(img, img, Size(1024, 1024), CV_INTER_CUBIC);
Mat inBlob = blobFromImage(img, 0.007843, Size(1024, 1024), Scalar::all(127.5), false, false);
net.setInput(inBlob, "data");
Mat out = net.forward("detection_out");
I am unable to find any solutions for this. Any help is greatly appreciated. Thank you!