models icon indicating copy to clipboard operation
models copied to clipboard

【object detection API】How to specify gpu card index?

Open L-CY opened this issue 9 years ago • 6 comments

I am following the Quick Start to train a pet detector. I have a server with four gtx1080Ti. My question is how to specify which gpu card (ig. one card or two card) I wanna use?

L-CY avatar Jun 27 '17 13:06 L-CY

solved

L-CY avatar Jun 27 '17 14:06 L-CY

@L-CY How did you solve this?

SimsGautam avatar Jun 27 '17 22:06 SimsGautam

@SimsGautam You can specify CUDA_VISIBLE_DEVICES when running ur python code.

L-CY avatar Jun 29 '17 08:06 L-CY

@L-CY, I do the same but it still seems to run on CPU. It would be helpful if you could specify where exactly in the code did you specify CUDA_VISIBLE_DEVICES.

Thanks!

ghost avatar Dec 21 '17 10:12 ghost

Enter the following in your terminal to switch to gpu 1: export CUDA_VISIBLE_DEVICES=1

gsssrao avatar Feb 17 '18 06:02 gsssrao

This solution works for me on Windows. https://stackoverflow.com/a/49735789/11552884

wander1985 avatar Jul 12 '19 19:07 wander1985