open-solution-mapping-challenge icon indicating copy to clipboard operation
open-solution-mapping-challenge copied to clipboard

How to use multiple GPU training?

Open xdsonglinliu opened this issue 6 years ago • 1 comments

From the file REPRODUCE_RESULTS.md, We know the code to start training is python main.py -- train --pipeline_name unet_weighted

But how to use multiple GPU training? I have two NVIDIA 1080 graphics cards, if I want use both of them at the same time in training, how should I set the parameters of the training command?

xdsonglinliu avatar Feb 13 '19 15:02 xdsonglinliu

@xdsonglinliu we are using DataParallel by default so all you need to do is go:

CUDA_VISIBLE_DEVICES=0,1,2,3 python main.py -- train --pipeline_name unet_weighted 

I hope this helps.

jakubczakon avatar Mar 19 '19 16:03 jakubczakon