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

no module named caffe #156

Open
prmex900 opened this issue Dec 15, 2018 · 8 comments
Open

no module named caffe #156

prmex900 opened this issue Dec 15, 2018 · 8 comments

Comments

@prmex900
Copy link

running step 4 python batch_hed.py --images_dir=/data/photos/ --hed_mat_dir=/data/photos1

but always get "Import Error: no module named caffe"

what do you suggest?

@junyanz
Copy link
Collaborator

junyanz commented Dec 15, 2018

You need to install the caffe library first. Also, see the original HED repo.

@prmex900
Copy link
Author

You need to install the caffe library first. Also, see the original HED repo.

i actually did it. i followed all the instructions from original repo.
module is still missing. maybe I had to link it somehow?
i tried all the steps with and without anaconda. I also made clear homebrew intall and clear opencv install. i deleted everything from usr/local before installing these.
using os Mojave

@junyanz
Copy link
Collaborator

junyanz commented Dec 16, 2018

Have you added your pycaffe path to your environment?

@prmex900
Copy link
Author

Have you added your pycaffe path to your environment?

i think no..
how to do it?

@junyanz
Copy link
Collaborator

junyanz commented Dec 16, 2018

See these two posts 1 and 2

@prmex900
Copy link
Author

prmex900 commented Dec 16, 2018

See these two posts 1 and 2

yes I was about to do that. but problem is I don't know which path to use
I have 3 caffe folders from original s9xie/hed repo.
i linked it to hed-master/python/caffe

Am I going right way?
I have nothing called caffe in usr/local

@junyanz
Copy link
Collaborator

junyanz commented Dec 16, 2018

PYTHONPATH=/path/to/caffe/python:

@prmex900
Copy link
Author

PYTHONPATH=/path/to/caffe/python:

can you check your .edu email? I dropped you full description on this issue

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