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
847 stars 517 forks source link

Can't open segnet weight file? #52

Closed Primus-zhao closed 7 years ago

Primus-zhao commented 7 years ago

Hi, appreciate that you share all your code in git, but got one problem when i try to repeat the demo. The weights file of link: http://mi.eng.cam.ac.uk/~agk34/resources/SegNet/segnet_weights_driving_webdemo.caffemodel can't be opened by the caffe.Net. The traceback is as following: 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 WARNING: Logging before InitGoogleLogging() is written to STDERR W0721 09:17:41.122994 3997 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface W0721 09:17:41.123042 3997 _caffe.cpp:123] Use this instead (with the named "weights" parameter): W0721 09:17:41.123049 3997 _caffe.cpp:125] Net('Example_Models/segnet_model_driving_webdemo.prototxt', 1, weights='/Example_Models/segnet_weights_driving_webdemo.caffemodel') Traceback (most recent call last): File "Scripts/webcam_demo.py", line 28, in caffe.TEST) RuntimeError: Could not open file /Example_Models/segnet_weights_driving_webdemo.caffemodel After that i opened the caffemodel file with sublime text and found that instead of hex digits, there are lots of error codes. Could you help me to figure out?

Primus-zhao commented 7 years ago

@alexgkendall ,

just find that weights download doesn't support linux terminal and firefox, perfectly solved after changing to chrome.

chaneydd commented 7 years ago

hi,,could you please describe your solution in detail, I met the same problem. I ran the a python program in the linux terminal @Primus-zhao

ghost commented 6 years ago

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

Same thing to Scripts/camvid12.png

kerolos commented 6 years ago

Could you Please let me know how did you fix this error? @Primus-zhao , @chaneydd , @Ruslan1990 . I also Changed the directory but it doesn't help.