chuanqi305 / MobileNet-SSD

Caffe implementation of Google MobileNet SSD detection network, with pretrained weights on VOC0712 and mAP=0.727.
MIT License
2.03k stars 1.18k forks source link

ImportError: No module named 'caffe' #94

Open mahertelmoudi opened 6 years ago

mahertelmoudi commented 6 years ago

I downloaded the provided models, but got the following error when running demo.py i changed caffe_root = '/home/yaochuanqi/work/ssd/caffe/' in the with path which my project is there but always i had that error (ImportError: No module named 'caffe') help me plz

fraukej commented 6 years ago

@mahertelmoudi Did you add $CAFFE_ROOT/python to your $PYTHONPATH environment variable?

mahertelmoudi commented 6 years ago

no how i can add it ?

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& 30/05/18 à 15:02:10

2018-05-30 11:59 GMT+01:00 fraukej notifications@github.com:

@mahertelmoudi https://github.com/mahertelmoudi Did you add $CAFFE_ROOT/python to your $PYTHONPATH environment variable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chuanqi305/MobileNet-SSD/issues/94#issuecomment-393119621, or mute the thread https://github.com/notifications/unsubscribe-auth/ASwyS76sfOXJMl4bdVDPYKFaIHmtOsvSks5t3nuUgaJpZM4USXTF .

fraukej commented 6 years ago

@mahertelmoudi

echo "export PYTHONPATH=/home/yaochuanqi/work/ssd/caffe/python:$PYTHONPATH" >> ~/.bashrc
source ~/.bashrc

and then check that it's correctly set by echo $PYTHONPATH. It should print (in your case) /home/yaochuanqi/work/ssd/caffe/python:

fraukej commented 6 years ago

... Did it work? @mahertelmoudi