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

what is your "fcn.data_dir" #43

Closed
iamGavinZhou opened this issue Jul 1, 2016 · 7 comments
Closed

what is your "fcn.data_dir" #43

iamGavinZhou opened this issue Jul 1, 2016 · 7 comments

Comments

@iamGavinZhou
Copy link

hi, i cloned your repository, but there are some problems, have you tested your code?
i used pip to install on my pc, using commond "pip install fcn"
followed your instruction, first i should convert caffe model to chainer model, with "./scripts/caffe_to_chainermodel.py ", but i got some wrong message
`/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/usr/local/lib/python2.7/dist-packages/matplotlib/init.py:1350: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

warnings.warn(_use_error_msg)
Traceback (most recent call last):
File "./scripts/caffe_to_chainermodel.py", line 64, in
main()
File "./scripts/caffe_to_chainermodel.py", line 58, in main
caffemodel = fcn.setup.download_fcn8s_caffemodel()
File "/usr/local/lib/python2.7/dist-packages/fcn/setup.py", line 41, in download_fcn8s_caffemodel
url=open(url_file).read().strip(),
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/fcn/_data/fcn.berkeleyvision.org/voc-fcn8s/caffemodel-url'
`
it sounds the "fcn.data_dir" is "/usr/local/lib/python2.7/dist-packages/fcn/_data/"
but when i use ipython to debug this problem. In first console window, i typed "import fcn; fcn.data_dir", i got the answer "/home/work-station/zx/fcn/data"; But when i opened another console window, i got an answer "/usr/local/lib/python2.7/dist-packages/fcn/_data", it doesn't make sense

what should i do now, thanks

@wkentaro
Copy link
Owner

wkentaro commented Jul 5, 2016

To use ./scripts/caffe_to_chainermodel.py, you need to follow the instruction for developers https://github.com/wkentaro/fcn#for-developers.

@iamGavinZhou
Copy link
Author

i used it! but it doesn't works

@wkentaro
Copy link
Owner

wkentaro commented Jul 5, 2016

what was the error?

@iamGavinZhou
Copy link
Author

same as the first one, about the "fcn.data_dir"
it's all right in your PC?

@wkentaro
Copy link
Owner

wkentaro commented Jul 5, 2016

On my pc it says like below:

% ./scripts/caffe_to_chainermodel.py
'/usr/local/lib/python2.7/dist-packages/fcn-3.1.0-py2.7.egg/fcn/_data/fcn8s_from_caffe.chainermodel' is already newest version.

@wkentaro
Copy link
Owner

wkentaro commented Jul 5, 2016

For the answer to your question, I usually use python setup.py develop with virtualenv, so fcn.data_dir is always ~/fcn/data.
But if you install fcn with command pip or python setup.py install, it is /usr/local/lib/python2.7/fcn/_data or ~/.local/lib/python2.7/fcn/_data.

@wkentaro
Copy link
Owner

wkentaro commented Jul 8, 2016

Fixed?

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