caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Can't run CPU-only mode

Open coelho-oliva opened this issue 10 years ago • 2 comments

I'm trying to compile this code I took from http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb . Even when running with IPython, I had to change some syntax such as % and ! functions. I guess they're running fine, since I'm not getting Syntax Error anymore. I've looked this down including on Github. But the issue #2241 hasn't solved my problem. I'm not sure what's going on. Here's what I'm receiving: """ (...) I0826 13:26:26.135545 13285 upgrade_proto.cpp:52] Attempting to upgrade input file specified using deprecated V1LayerParameter: ../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel I0826 13:26:26.404727 13285 upgrade_proto.cpp:60] Successfully upgraded file specified using deprecated V1LayerParameter I0826 13:26:26.495964 13285 net.cpp:761] Ignoring source layer loss mean-subtracted values: [('B', 104.0069879317889), ('G', 116.66876761696767), ('R', 122.6789143406786)] predicted class is: 281 output label: n02123045 tabby, tabby cat probabilities and labels: 1 loop, best of 3: 2.45 s per loop LINE 66 RUNNING F0826 13:26:38.967905 13285 common.cpp:67] Cannot use GPU in CPU-only Caffe: check mode. *** Check failure stack trace: *** Aborted """ The print "LINE 66 (...)" was made by myself on "common.cpp" just for knowing exactly what was going on on that code. I've tried the same as they answered on issue #2241 , but didn't solve at all.

Info:

  1. I'm using caffe-master/models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel trained model.
  2. Python version: Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
  3. IPython version: IPython 4.2.0 -- An enhanced Interactive Python.

Hopefully, I was clear enough. Anything left unexplained, please let me know ASAP.

coelho-oliva avatar Aug 26 '16 17:08 coelho-oliva

People, I still did not solve this. I really need help getting this done; would someone, please, save my days?

coelho-oliva avatar Sep 09 '16 05:09 coelho-oliva

I'm still trying to solve this, but still getting this message, any help please ? I Couldn't by pass the GPU mode even tho in the code CPU = 1 Thanks

CXX .build_release/src/caffe/proto/caffe.pb.cc CXX src/caffe/blob.cpp In file included from ./include/caffe/common.hpp:19:0, from ./include/caffe/blob.hpp:8, from src/caffe/blob.cpp:4: ./include/caffe/util/device_alternate.hpp:34:23: error : cublas_v2.h: No existe

sabirdvd avatar Oct 01 '16 10:10 sabirdvd