mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Fix lowvram issue.
This commit is contained in:
parent
0eaa34ec5b
commit
605e64f6d3
@ -934,7 +934,7 @@ class MMDiT(nn.Module):
|
|||||||
context = self.context_processor(context)
|
context = self.context_processor(context)
|
||||||
|
|
||||||
hw = x.shape[-2:]
|
hw = x.shape[-2:]
|
||||||
x = self.x_embedder(x) + self.cropped_pos_embed(hw, device=x.device).to(dtype=x.dtype)
|
x = self.x_embedder(x) + self.cropped_pos_embed(hw, device=x.device).to(dtype=x.dtype, device=x.device)
|
||||||
c = self.t_embedder(t, dtype=x.dtype) # (N, D)
|
c = self.t_embedder(t, dtype=x.dtype) # (N, D)
|
||||||
if y is not None and self.y_embedder is not None:
|
if y is not None and self.y_embedder is not None:
|
||||||
y = self.y_embedder(y) # (N, D)
|
y = self.y_embedder(y) # (N, D)
|
||||||
|
Loading…
Reference in New Issue
Block a user