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

ImportError: No module named model_libs #12

Open
JunxiangWang opened this issue Apr 4, 2018 · 6 comments
Open

ImportError: No module named model_libs #12

JunxiangWang opened this issue Apr 4, 2018 · 6 comments

Comments

@JunxiangWang
Copy link

我尝试在caffe下训练一个模型,发生了这个错误
python train.py
python2 ssd_hardcode/ssd_pascal_512.py
Traceback (most recent call last):
File "ssd_hardcode/ssd_pascal_512.py", line 3, in
from caffe.model_libs import *
ImportError: No module named model_libs
Traceback (most recent call last):
File "train.py", line 35, in
main()
File "train.py", line 31, in main
assert 0 == p.returncode
AssertionError

@yuantailing
Copy link
Owner

Did you build pycaffe correctly?

cd caffe && cp Makefile.config.example Makefile.config && make -j8 && make py

@yuantailing
Copy link
Owner

yuantailing commented Apr 4, 2018

Sorry, I clicked Close issue accidentally.

@yuantailing yuantailing reopened this Apr 4, 2018
@JunxiangWang
Copy link
Author

I built paycaffe correctly and added PYTHONPATH into the file of~/.bashrc,but there was the same error

@yuantailing
Copy link
Owner

Maybe you are at a wrong branch. Try

cd ssd/caffe && checkout b4bacbbdc40945c6c91d29c10003b0057a54e70c

@gangliu123
Copy link

@yuantailing
I got the same issue. And I tried that, it doesn't work

@yuantailing
Copy link
Owner

What's output of ls ssd/caffe/python/caffe and cd ssd/caffe && git status?

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

3 participants