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?
solved
@L-CY How did you solve this?
@SimsGautam You can specify CUDA_VISIBLE_DEVICES when running ur python code.
@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!
Enter the following in your terminal to switch to gpu 1:
export CUDA_VISIBLE_DEVICES=1
This solution works for me on Windows.
https://stackoverflow.com/a/49735789/11552884
Most helpful comment
Enter the following in your terminal to switch to gpu 1:
export CUDA_VISIBLE_DEVICES=1