Total beginner in caffe: RuntimeError: Could not open file python/../models/bvlc_reference_caffenet/

546 views
Skip to first unread message

caffe.b...@gmail.com

unread,
Dec 13, 2016, 1:12:14 AM12/13/16
to Caffe Users
Hi ,

I am a beginner in Caffe and Python.

I installed Caffe and compiled it successfully in ubuntu 16.04. I created an environment in anaconda 2 and used Cmake for compiling. 
I ran this code and it printed caffe version.
 python -c "import caffe;print caffe.__version__"
1.0.0-rc3


Now I am trying to run the first example in Caffe and see the output; however, i am facing a lot of problems. i tried to run the following code:
~/caffe-master$ python python/classify.py --print_results examples/images/cat.jpg foo
CPU mode
WARNING: Logging before InitGoogleLogging() is written to STDERR
W1213 13:41:16.520880 10117 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W1213 13:41:16.520905 10117 _caffe.cpp:123] Use this instead (with the named "weights" parameter):
W1213 13:41:16.520907 10117 _caffe.cpp:125] Net('python/../models/bvlc_reference_caffenet/deploy.prototxt', 1, weights='python/../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel')
Traceback (most recent call last):
  File "python/classify.py", line 177, in <module>
    main(sys.argv)
  File "python/classify.py", line 122, in main
    channel_swap=channel_swap)
  File "/home/somayeh/caffe-master/python/caffe/classifier.py", line 26, in __init__
    caffe.Net.__init__(self, model_file, pretrained_file, caffe.TEST)
RuntimeError: Could not open file python/../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel

Can you please help me and let me know what should I do step by step?

Shrabani Ghosh

unread,
May 22, 2017, 1:11:09 PM5/22/17
to Caffe Users
Have you solved it? I got the same error. 

HARJATIN SINGH

unread,
May 22, 2017, 4:12:22 PM5/22/17
to Caffe Users
Download the blvc reference caffemodel from link http://dl.caffe.berkeleyvision.org/bvlc_reference_caffenet.caffemodel and ave it in the  models/bvlc_reference_caffenet/ folder
Reply all
Reply to author
Forward
0 new messages