JuliaWolleb / Diffusion-based-Segmentation

This is the official Pytorch implementation of the paper "Diffusion Models for Implicit Image Segmentation Ensembles".
MIT License
280 stars 38 forks source link

Run on Multiple GPUS #43

Closed TheRealCameronEvans closed 1 year ago

TheRealCameronEvans commented 1 year ago

Hello, thanks for sharing your code! Would it be possible for me to run the processes across multiple GPUs? I have a few low powered ones so this would speed my jobs up a lot. Thanks!

JuliaWolleb commented 1 year ago

Good morning

Yes, to run across multiple GPUs, this is already implemented in the code. You will need to set the flag use_ddp = True, you will enter the torch DistributedDataParallel (DDP) in the file guided_diffusion/train_util.py .

Let me know whether this answers your question. Best, Julia