Hello there, do anybody know how to apply caffe into pythonanywhere ? I created a django web and don't know how to install caffe in here, thanks
Hello there, do anybody know how to apply caffe into pythonanywhere ? I created a django web and don't know how to install caffe in here, thanks
hmm, is this the caffe you are talking about?
yes, sir. I have tried to install it from its tutorial for ubuntu, but it doesn't work since it uses "sudo apt-get " for installation that need admin access. Any idea how to solve it sir ? Thanks.
You may be able to compile it using make. However, if you don't know how to do that, we may not be able to offer step by step instructions to help you.
Thank you for your reply, this is what i do to compile :
git clone https://github.com/BVLC/caffe.git
cp Makefile.config.example Makefile.config
vim Makefile.config
changing Makefile.config to be like this:
CPU_ONLY := 1
CUDA_DIR := /usr/local/cuda
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \ -gencode arch=compute_20,code=sm_21 \ -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=sm_50 \ -gencode arch=compute_52,code=sm_52 \ -gencode arch=compute_60,code=sm_60 \ -gencode arch=compute_61,code=sm_61 \ -gencode arch=compute_61,code=compute_61
BLAS := open
PYTHON_LIBRARIES := boost_python3 python3.5m
PYTHON_INCLUDE := /usr/include/python3.5m \ /usr/lib/python3.5/dist-packages/numpy/core/include
PYTHON_LIB := /usr/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
BUILD_DIR := build
DISTRIBUTE_DIR := distribute
Then i after save the file , i run following command:
After that , it stuck in the "make all" command, the error shows:
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/blob.cpp
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:10:40: fatal error: google/protobuf/port_def.inc: No such file or directory compilation terminated.
Makefile:598: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ./include/caffe/blob.hpp:8:0,
from src/caffe/blob.cpp:4:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory compilation terminated.
Makefile:591: recipe for target '.build_release/src/caffe/blob.o' failed make: *** [.build_release/src/caffe/blob.o] Error 1
is there any suggestion ? Thanks.
Unfortunately I may not be able to help there :(