Conditional_Diffusion_MNIST icon indicating copy to clipboard operation
Conditional_Diffusion_MNIST copied to clipboard

Memory consumption issue and solution

Open echeloni11 opened this issue 9 months ago • 0 comments

Hi,

Thank you so much for the code!

I am working with this code these days and I found that sampling from a trained model consumes significant memory. I looked into this problem and I found that it is helpful to add a line "x_i = x_i.detach()" at the end of the for loop in function DDPM.sample in script.py.

I hope it helps!

Thanks, Harry

echeloni11 avatar May 01 '24 05:05 echeloni11