Pusheen commited on
Commit
a89da3b
1 Parent(s): bfc1c93

Update gligen/ldm/models/diffusion/plms.py

Browse files
gligen/ldm/models/diffusion/plms.py CHANGED
@@ -209,6 +209,7 @@ class PLMSSampler(object):
209
  x = x - grad_cond
210
  x = x.detach()
211
  iteration += 1
 
212
 
213
 
214
  return x
 
209
  x = x - grad_cond
210
  x = x.detach()
211
  iteration += 1
212
+ torch.cuda.empty_cache()
213
 
214
 
215
  return x