yahoo/open_nsfw

GPU version not faster than CPU version

HolyB opened this issue · 3 comments

HolyB commented

Hi,
I tried GPU version of the open_nsfw. But I found the GPU version is just a little faster than CPU.
Does anyone know the reason?

How much time did it take in classify?

Me too~~ GPU not faster than cpu, I watch nvidia-smi GPU-Util is still 0%,and GPU Memory is not zero. It means processing in GPU,but not use GPU‘calculate

try

caffe.set_mode_gpu()
caffe.set_device(0)

it works for me, up to 10 times faster