Models: 銆恛bject detection API銆慔ow to specify gpu card index?

Created on 27 Jun 2017  路  6Comments  路  Source: tensorflow/models

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?

Most helpful comment

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

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings