yuantailing / ctw-baseline

Baseline methods for [CTW dataset](https://ctwdataset.github.io/)
MIT License
329 stars 88 forks source link

ImportError: No module named model_libs #12

Open JunxiangWang opened 6 years ago

JunxiangWang commented 6 years ago

我尝试在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 commented 6 years ago

Did you build pycaffe correctly?

cd caffe && cp Makefile.config.example Makefile.config && make -j8 && make py
yuantailing commented 6 years ago

Sorry, I clicked Close issue accidentally.

JunxiangWang commented 6 years ago

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

yuantailing commented 6 years ago

Maybe you are at a wrong branch. Try

cd ssd/caffe && checkout b4bacbbdc40945c6c91d29c10003b0057a54e70c

gangliu123 commented 6 years ago

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

yuantailing commented 6 years ago

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