SegNet-Tutorial icon indicating copy to clipboard operation
SegNet-Tutorial copied to clipboard

Cannot open caffemodel file. Please help!

Open nhoxanboc opened this issue 8 years ago • 4 comments

Hi there, sorry for my bad English. I have done everything to build caffe-segnet in your tutorial with openblas and cpu only config on my mac, also pycaffe. When I edit webcam_demo.py file, I set

caffe_root = '/Users//caffe-segnet'

then in terminal:

cd SegNet-Tutorial export PYTHONPATH=/Users//caffe-segnet/python:$PYTHONPATH python Scripts/webcam_demo.py --model Example_Models/segnet_model_driving_webdemo.prototxt --weights /Example_Models/segnet_weights_driving_webdemo.caffemodel --colours /Scripts/camvid12.png

and the error was:

Traceback (most recent call last): File "Scripts/webcam_demo.py", line 27, in caffe.TEST) RuntimeError: Could not open file /Example_Models/segnet_weights_driving_webdemo.caffemodel

Please help me in detail, I'm a beginner :)

nhoxanboc avatar Aug 24 '16 17:08 nhoxanboc

Try to remove "/" before Example_Models/segnet_weights_driving_webdemo.caffemodel

Same thing to Scripts/camvid12.png

WeiyiLi avatar Aug 24 '16 23:08 WeiyiLi

thank you very much. It solved my problem :D

nhoxanboc avatar Aug 25 '16 03:08 nhoxanboc

excuse me, have you done it on your computer? it running slowly on mine, I must wait for over 15s for a frame to be processed. Is there any way to improve it?

nhoxanboc avatar Aug 25 '16 03:08 nhoxanboc

You need a GPU.

BlueCrow1991 avatar Aug 27 '16 07:08 BlueCrow1991