Browse Source

Fix an OOM issue.

pull/14/head
comfyanonymous 2 years ago
parent
commit
09f1d76ed8
  1. 1
      comfy/ldm/modules/diffusionmodules/openaimodel.py

1
comfy/ldm/modules/diffusionmodules/openaimodel.py

@ -786,6 +786,7 @@ class UNetModel(nn.Module):
if control is not None:
hsp += control.pop()
h = th.cat([h, hsp], dim=1)
del hsp
h = module(h, emb, context)
h = h.type(x.dtype)
if self.predict_codebook_ids:

Loading…
Cancel
Save