UGATIT-pytorch icon indicating copy to clipboard operation
UGATIT-pytorch copied to clipboard

fix to issue #23 (CUDA out of memory at 1000th epoch) as suggested by…

Open wilsonjwcsu opened this issue 2 years ago • 0 comments

Fix to issue #23 (CUDA out of memory at 1000th epoch) as suggested by @07hyx06. Surrounded print output with torch.no_grad().

Tested by running on an internal large dataset. Before the fix, it stopped at 1000th epoch, complaining that it was out of memory. After fix, it's still running at 128,000 epochs. Memory initially 22157MB on GPU, and has not increased during training.

wilsonjwcsu avatar Mar 16 '22 15:03 wilsonjwcsu