caffe-dilation, make pycaffe problems

380 views
Skip to first unread message

Måns Larsson

unread,
May 25, 2016, 11:21:08 AM5/25/16
to Caffe Users
Hi,
I have installed the master branch of caffe and got it to run with both matcaffe and pycaffe interfaces.
However, when I try to compile pycaffe for the caffe-dilation branch, I get the following output from make pycaffe:

CXX/LD -o build_master_release/python/caffe/_caffe.so python/caffe/_caffe.cpp
touch python/caffe/proto/__init__.py
PROTOC (python) src/caffe/proto/caffe.proto
rsync -a --include '*/' --include '*.py' --exclude '*' \
      python/caffe/ build_master_release/python/caffe

when doing make pytest I get a lot of failed cases, trying to run make pycaffe again prints

rsync -a --include '*/' --include '*.py' --exclude '*' \
      python/caffe/ build_master_release/python/caffe


There is no problem doing make all and make matcaffe. Does anyone have an idea what might be wrong?

Thanks in advance!

Regards,
Måns


yuca...@gmail.com

unread,
Jun 20, 2016, 8:25:44 AM6/20/16
to Caffe Users
I have the same problem and tried many times. 
  Last I find there is _caffe.so in "build_release/python" dir , so I copy it to python/caffe dir . That can make "import caffe" success.  But I don't know it is 
the right method.

Leon

unread,
Jul 2, 2016, 11:15:40 PM7/2/16
to Caffe Users
Same Problem

在 2016年5月25日星期三 UTC+8下午11:21:08,Måns Larsson写道:

lhao

unread,
Aug 28, 2016, 8:01:38 AM8/28/16
to Caffe Users
Or add the build_master/python to the python path.

在 2016年7月3日星期日 UTC+8上午11:15:40,Leon写道:

Fisher Yu

unread,
Sep 6, 2016, 12:10:03 PM9/6/16
to Caffe Users

As people have observed, which is documented in the readme, the built python library is in the build directory instead of the original Caffe source directory. In the original Caffe, the latter is used. However, if I need to build pycaffe from multiple branches, the built python library will override each other in the source directory, even though the C++ libraries and binaries of different branches can coexist in different build directories. Therefore, I changed Makefile in caffe-dilation so that the python libraries and source files are put in the same build directory with the other source files in the same git branch.


However, the user will have to add python/ in build directory to PYTHONPATH instead python/ in the caffe source directory.

Reply all
Reply to author
Forward
0 new messages