Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

When loading caffe VGG-16 I get: error: (-215) (idx == -1 && size() == 1) || (idx >= 0 && idx < size()) in function get

$
0
0
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](https://github.com/BVLC/caffe/wiki/Model-Zoo#vgg-4x-without-degradation-channel-pruning-for-accelerating-very-deep-neural-networks) - [model](https://github.com/yihui-he/channel-pruning/releases/tag/VGG-16_3C4x). I've changed .prototxt file according to this [tutorial](https://github.com/BVLC/caffe/wiki/Using-a-Trained-Network:-Deploy). Changed [.prototx](https://pastebin.com/PhVDxwAX) 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 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](https://pastebin.com/nEAZHiVL) is the python code I use for loading. Thanks in advance!

Viewing all articles
Browse latest Browse all 2088

Trending Articles