Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the pretrained model #20

Open
asad1996172 opened this issue Jul 16, 2017 · 1 comment
Open

Error while running the pretrained model #20

asad1996172 opened this issue Jul 16, 2017 · 1 comment

Comments

@asad1996172
Copy link

I am receiving this error when i try to run the pre-trained model

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0713 03:50:08.101807 13390 _caffe.cpp:135] DEPRECATION WARNING - deprecated use of Python interface
W0713 03:50:08.101938 13390 _caffe.cpp:136] Use this instead (with the named "weights" parameter):
W0713 03:50:08.101943 13390 _caffe.cpp:138] Net('ENet/prototxts/enet_deploy_final.prototxt', 1, weights='ENet/enet_weights_zoo/cityscapes_weights.caffemodel')
Traceback (most recent call last):
File "test_segmentation.py", line 46, in
net = caffe.Net(args.model, args.weights, caffe.TEST)
RuntimeError: Could not open file ENet/prototxts/enet_deploy_final.prototxt

@rsingla92
Copy link

rsingla92 commented Aug 2, 2017

Hi @asad1996172,

Can you post what command you're trying to run? Is it the following (exactly)?

$ python test_segmentation.py
--model ENet/prototxts/enet_deploy_final.prototxt \
--weights ENet/enet_weights_zoo/cityscapes_weights.caffemodel
--colours ENet/scripts/cityscapes19.png
--input_image ENet/example_image/munich_000000_000019_leftImg8bit.png
--out_dir ENet/example_image/

If so, try changing the parameters to include the absolute paths. For example, if your ENet directory lived in /home/asad/ENet, then try

$ python test_segmentation.py
--model /home/asad/ENet/prototxts/enet_deploy_final.prototxt \
--weights /home/asad/ENet/enet_weights_zoo/cityscapes_weights.caffemodel
--colours /home/asad/ENet/scripts/cityscapes19.png
--input_image /home/asad/ENet/example_image/munich_000000_000019_leftImg8bit.png
--out_dir /home/asad/ENet/example_image/

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants