CSAILVision / NetDissect

Network Dissection http://netdissect.csail.mit.edu for quantifying interpretability of deep CNNs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caffe cannot be imported

GKalliatakis opened this issue · comments

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.

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}

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

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

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