Error with DNN

asked 2016-12-02 07:19:17 -0500

Nbb gravatar image

Hi I have deep network

        //set input data
        cv::dnn::Blob input_blob = cv::dnn::Blob::fromImages(candidate);
        net.setBlob("data", input_blob);

        //propagate through googlenet
        net.forward(net.getLayerId("relu4"));

        //get final feature map
        cv::dnn::Blob relu5 = net.getBlob("relu4");

but get error

OpenCV Error: Assertion failed ((size_t)innerSize == input[0]->total(axisCan)) in cv::dnn::FullyConnectedLayerImpl::allocate, file C:\Bin\opencv_contrib-master\modules\dnn\src\layers\fully_connected_layer.cpp, line 72
edit retag flag offensive close merge delete