Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

Nbb gravatar image

Error with DNN

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