Closed sunle2009 closed 8 years ago
which version did you try? did you try the latest python code?
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:
has_gpu = 1
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 .
gpudevice=-1 means you do not have gpu device. If you have at least one GPU, you should be able to use gpudevice=0.
Hi where is the examples/segmentationcrfasrnn please? Cannot find it. Thank you.
found it. Thank you.
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