draw error

167 views
Skip to first unread message

chao_...@hotmail.com

unread,
Feb 1, 2015, 9:14:22 PM2/1/15
to caffe...@googlegroups.com
To see siamese networks, i run "./python/draw_net.py ./examples/siamese/mnist_siamese.prototxt \  ./examples/siamese/mnist_siamese.png", then the terminal reports errors as follows:

Traceback (most recent call last):
  File "./python/draw_net.py", line 8, in <module>
    import caffe, caffe.draw
  File "/root/caffe-master/caffe-master/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver
  File "/root/caffe-master/caffe-master/python/caffe/pycaffe.py", line 10, in <module>
    from ._caffe import Net, SGDSolver
ImportError: No module named _caffe



who can tell me why?

Daniel Golden

unread,
Feb 4, 2015, 3:24:29 AM2/4/15
to caffe...@googlegroups.com

Is the Caffe python directory on your $PYTHONPATH?

chao_...@hotmail.com

unread,
Feb 4, 2015, 6:08:35 AM2/4/15
to caffe...@googlegroups.com
yes,but i indeed can't find _caffy.py in the python/caffe catalogue, only _caffe.cpp and _caffe.hpp.

在 2015年2月4日星期三 UTC+8下午4:24:29,Daniel Golden写道:
Reply all
Reply to author
Forward
0 new messages