models icon indicating copy to clipboard operation
models copied to clipboard

GPU device setting for python object_detecttion/train.py running on local machine

Open troylhy1991 opened this issue 9 years ago • 3 comments

Hi,

I'm running the train.py on my local machine (with four GPUs).

It's running on GPU:0 , but all the other three GPUs also got memory loaded, so I cannot use them for the other job at the same time.

Is there any idea for setting up the train.py on exactly only one GPU like --gpus 0?

Thanks,

Troy

troylhy1991 avatar Jun 21 '17 01:06 troylhy1991

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. Thanks!

That said, you're looking for the environment variable CUDA_VISIBLE_DEVICES. E.g. CUDA_VISIBLE_DEVICES=0 will restrict to gpu 0.

tatatodd avatar Jun 21 '17 01:06 tatatodd

Did you try the multi-gpu training? I want to train it on 2 gpus, and change the parameter 'num_clones' and 'batchsize' to 2, it gives me a out of range error.

wuwuwuxxx avatar Jun 23 '17 03:06 wuwuwuxxx

@wuwuwuxxx I have the same issue. Looking to resolve this. Thanks!

SimsGautam avatar Jun 27 '17 17:06 SimsGautam