Comments (8)
I have built caffe with CPU too and gave me no problems. Have you tried to re-install Caffe with CUDNN? What GPU do you have?
I saw the same error in the past, but I don't remember how I solved it. Did you check bash_profile/bashrc paths? I think there's something wrong there. Another thing, try to compile by setting
CUSTOM_CXX := clang++ -std=c++11
into your Makefile.config
file.
from deepcut.
When I comment the following part of src/caffe/layers/softmax_loss_vec_layer.cpp, there is no error :-)
/*
template
void SoftmaxWithLossVecLayer::Forward_gpu(const vector<Blob>& bottom,
const vector<Blob>& top)
{
//LOG(FATAL) << "Cannot use GPU in CPU-only Caffe: check mode.";
Forward_cpu(bottom, top);
}
template
void SoftmaxWithLossVecLayer::Backward_gpu(const vector<Blob>& top,
const vector& propagate_down,
const vector<Blob>& bottom)
{
//LOG(FATAL) << "Cannot use GPU in CPU-only Caffe: check mode.";
Backward_cpu(top, propagate_down, bottom);
}
*/
from deepcut.
And it leads to your issue, somehow... Namely, it is the error in syncedmem.cpp
.
from deepcut.
Hey, I updated the deepcut-cnn repo with the fix CPU-only build, and tested it. So closing this one.
from deepcut.
Thanks for your answer.
I checked the bashrc, in fact I have another application that used Caffe, and I make
Caffe on that app successfully, using the same Makefile.config
that I used to make
Caffe in this application.
Enabling GPU build gives me out of memory error, and using CPU build gives me the redefinition error.
I am using Ubuntu 14.04, Graphic card: GeForce GTX 980.
from deepcut.
Why are you installing another copy of caffe with the same configuration?
I installed it only once on my machine and I used that for all my applications. Probably this is the problem. Have you tried with the -std=c++11
in the Makeconfig.file
?
from deepcut.
Seems like Deepcut required Caffe to be placed exactly in external/caffe
, how did you config it to point to your Caffe installation?
I did try with the -std+c+11
in the Makeconfig.file
from deepcut.
I have the same issue. Actually I have successfully installed the main version of BVLC/Caffe with make all pycaffe matcaffe. But the current necessary version (external/caffe) gives me the following error. I set:
CXXFLAGS += -std=c++11
CPU_ONLY := 1
BLAS := mkl
The error log is:
CXX src/caffe/layers/softmax_loss_vec_layer.cpp
src/caffe/layers/softmax_loss_vec_layer.cpp:254:1: error: redefinition of ‘void caffe::SoftmaxWithLossVecLayer::Forward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vectorcaffe::Blob<Dtype_>&)’
src/caffe/layers/softmax_loss_vec_layer.cpp:237:6: error: ‘virtual void caffe::SoftmaxWithLossVecLayer::Forward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vectorcaffe::Blob<Dtype_>&)’ previously declared here
src/caffe/layers/softmax_loss_vec_layer.cpp:254:1: error: redefinition of ‘void caffe::SoftmaxWithLossVecLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’
src/caffe/layers/softmax_loss_vec_layer.cpp:245:6: error: ‘virtual void caffe::SoftmaxWithLossVecLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’ previously declared here
make: *** [.build_release/src/caffe/layers/softmax_loss_vec_layer.o] Error 1
from deepcut.
Related Issues (16)
- solutionFname HOT 1
- Could NOT find GLUT?
- Error using hdf5writec
- Error in demo_multiperson (line 12) HOT 1
- How to train?
- Requirements
- Error in _cutoff_tile function
- Errors while compiling CPU-only version
- ResNet-50.caffemodel HOT 1
- GPU out of memory error HOT 3
- Runtime error HOT 14
- Unable to compile external/solver HOT 3
- solver-callback HOT 1
- how to computer the mean average precision ?
- Evaluation on MPII Human Pose Dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepcut.