alexgkendall / SegNet-Tutorial

Files for a tutorial to train SegNet for road scenes using the CamVid dataset
http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html
856 stars 519 forks source link

Cannot open caffemodel file. Please help! #60

Open nhoxanboc opened 8 years ago

nhoxanboc commented 8 years ago

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 :)

WeiyiLi commented 8 years ago

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

Same thing to Scripts/camvid12.png

nhoxanboc commented 8 years ago

thank you very much. It solved my problem :D

nhoxanboc commented 8 years ago

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?

BlueCrow1991 commented 8 years ago

You need a GPU.