mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
Fix an OOM issue.
This commit is contained in:
parent
d66415c021
commit
09f1d76ed8
@ -786,6 +786,7 @@ class UNetModel(nn.Module):
|
|||||||
if control is not None:
|
if control is not None:
|
||||||
hsp += control.pop()
|
hsp += control.pop()
|
||||||
h = th.cat([h, hsp], dim=1)
|
h = th.cat([h, hsp], dim=1)
|
||||||
|
del hsp
|
||||||
h = module(h, emb, context)
|
h = module(h, emb, context)
|
||||||
h = h.type(x.dtype)
|
h = h.type(x.dtype)
|
||||||
if self.predict_codebook_ids:
|
if self.predict_codebook_ids:
|
||||||
|
Loading…
Reference in New Issue
Block a user