torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

cannot solve: Cannot use GPU in CPU-only Caffe: check mode #65

Closed sunle2009 closed 8 years ago

sunle2009 commented 8 years ago

Hi,

When I run: python crfasrnn_demo.py The problem is as:


Input file is " input.jpg Output file is " output.png GPU_DEVICE is " 0 WARNING: Logging before InitGoogleLogging() is written to STDERR F0829 22:22:03.615937 22095 common.cpp:66] Cannot use GPU in CPU-only Caffe: check mode. * Check failure stack trace: * Aborted (core dumped)


I have uncommented the CPU_ONLY = 1 in the 'Makefile.config' Changed CMakeLists.txt: caffe_option(CPU_ONLY "Build Caffe without CUDA support" ON) changed solver_mode: CPU in .prototxt files


However, the problem is still there. Would anyone like to help please? Thanks very much

bittnt commented 8 years ago

which version did you try? did you try the latest python code?

sunle2009 commented 8 years ago

Hi Shuai,

Thanks for your reply. In this demo script: https://github.com/torrvision/crfasrnn/blob/master/python-scripts/crfasrnn_demo.py why gpudevice >=0 ?

if gpudevice >=0:

Do you have GPU device?

has_gpu = 1

which gpu device is available?

gpu_device=gpudevice

On 29 August 2016 at 23:31, Shuai Zheng notifications@github.com wrote:

which version did you try? did you try the latest python code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/torrvision/crfasrnn/issues/65#issuecomment-243124331, or mute the thread https://github.com/notifications/unsubscribe-auth/AUUq1cqCihA6y0jwjMb1uS_xggbcXSxyks5qkt8wgaJpZM4Jvbe9 .

bittnt commented 8 years ago

gpudevice=-1 means you do not have gpu device. If you have at least one GPU, you should be able to use gpudevice=0.

sunle2009 commented 8 years ago

Hi where is the examples/segmentationcrfasrnn please? Cannot find it. Thank you.

sunle2009 commented 8 years ago

found it. Thank you.