Skip to content

Commit

Permalink
fix single gpu training
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketFlash committed Jul 16, 2020
1 parent 4088aea commit 8b99e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def main():
gpu_ids_list = gpu_ids.split(',')
n_gpu = len(gpu_ids_list)
else:
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
n_gpu = 1
print('Use single gpu mode')

Expand Down

0 comments on commit 8b99e27

Please sign in to comment.