multibox icon indicating copy to clipboard operation
multibox copied to clipboard

cpu or gpu

Open A-Rain opened this issue 6 years ago • 1 comments

When training the model, can we use CPU instead of GPU?

A-Rain avatar May 02 '18 07:05 A-Rain

The easiest way to do this would be to set the environment variableCUDA_VISIBLE_DEVICES=3, where 3 is a number that is larger than the number of gpus present in your machine. This will prevent tensorflow from using the gpus. So you can do something like:

$ CUDA_VISIBLE_DEVICES=3 python train.py .... 

gvanhorn38 avatar May 02 '18 15:05 gvanhorn38