CSAILVision / NetDissect

Network Dissection http://netdissect.csail.mit.edu for quantifying interpretability of deep CNNs.
MIT License
449 stars 115 forks source link

Caffe cannot be imported #2

Closed GKalliatakis closed 7 years ago

GKalliatakis commented 7 years ago

Where should I put the cloned repo inside the compiled caffe folder in order not to get the import error of no module named caffe?

I have already matcaffe and pycaffe compiled in that folder.

davidbau commented 7 years ago

Make sure your PYTHONPATH has caffe's python folder in it, e.g.,

CAFFE_HOME=/usr/local/caffe # or wherever your caffe is
PYTHONPATH=${CAFFE_HOME}/python:${PYTHONPATH}
GKalliatakis commented 7 years ago

I have tried export PYTHONPATH=path/to/caffe/python:$PYTHONPATH

But I get the same error..Any other thoughts?

GKalliatakis commented 7 years ago

I manage to fix the error. The caffe Python module was not properly installed at first place.