I am getting started with pycaffe and trying to use various commands as
given here. This is the simple code I have written to just load a net.
#activate CPU mode
caffe.set_mode_cpu()
#path of files
deploy_file_path = '~/caffe/examples/mnist/lenet.prototxt'
weights_file_path = '~/caffe/examples/mnist/lenet_iter_5000.caffemodel'
#load a net
net = caffe.Net(deploy_file_path, weights_file_path, caffe.TEST)
However when I try to execute this I get the error:
Traceback (most recent call last):
File "/home/xx/caffe/python/xxx.py", line 22, in <module>
net = caffe.Net(deploy_file_path, weights_file_path, caffe.TEST)
RuntimeError: Could not open file ~/caffe/examples/mnist/lenet.prototxt
I think I am missing something really basic here. Can someone explain my ignorance to me?