Hey guys,
First of all, I want to thank authors of DNN module I think it is great even though the process of running own networks is not well documented yet.
I am trying to load VGG-16_3C4x from model zoo - model. I've changed .prototxt file according to this tutorial. Changed .prototx
This is the error:
OpenCV(3.4.1) Error: Assertion failed ((idx == -1 && size() == 1) || (idx >= 0 && idx < size())) in get, file /tmp/opencv-20180307-60086-ryy1b3/opencv-3.4.1/modules/dnn/include/opencv2/dnn/dnn.inl.hpp, line 88 Traceback (most recent call last): File "run_caffe.py", line 35, in <module> result = net.forward() cv2.error: OpenCV(3.4.1) /tmp/opencv-20180307-60086-ryy1b3/opencv-3.4.1/modules/dnn/include/opencv2/dnn/dnn.inl.hpp:88: error: (-215) (idx == -1 && size() == 1) || (idx >= 0 && idx < size()) in function get
Here is the python code I use for loading.
Thanks in advance!