SG-GAN icon indicating copy to clipboard operation
SG-GAN copied to clipboard

Multi-GPUs problem

Open BongBong87 opened this issue 5 years ago • 4 comments

Does this model can train and test in Multi-GPUs? Thank you

BongBong87 avatar Sep 14 '19 11:09 BongBong87

The code is single-GPU only at that time. For the model, at training time we found batch size 1 would end up with the best performance (perhaps restricted by dataset size); at test time it could be paralleled/distributed for faster inference,

Peilun-Li avatar Sep 15 '19 04:09 Peilun-Li

Thank you so much for quick reply. In case If I change the bath size to 4 or 8. Which part I need to modify for multi-GPUs. Thanks again.

BongBong87 avatar Sep 15 '19 04:09 BongBong87

You may have to restructure model.py to place generators/discriminators in different GPUs. https://www.tensorflow.org/guide/using_gpu .

Peilun-Li avatar Sep 15 '19 04:09 Peilun-Li

Okay. Thank you so much for your sharing

BongBong87 avatar Sep 15 '19 04:09 BongBong87