mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
device
This commit is contained in:
parent
a1c7584122
commit
f332332495
@ -628,7 +628,7 @@ class NextDiT(nn.Module):
|
|||||||
transformer_options["total_blocks"] = len(self.layers)
|
transformer_options["total_blocks"] = len(self.layers)
|
||||||
transformer_options["block_type"] = "double"
|
transformer_options["block_type"] = "double"
|
||||||
for i, layer in enumerate(self.layers):
|
for i, layer in enumerate(self.layers):
|
||||||
transformer_options["block_index"] = torch.tensor(i, dtype=torch.uint8, device=img.device)
|
transformer_options["block_index"] = torch.tensor(i, dtype=torch.uint8, device="cpu")
|
||||||
img = layer(img, mask, freqs_cis, adaln_input, transformer_options=transformer_options)
|
img = layer(img, mask, freqs_cis, adaln_input, transformer_options=transformer_options)
|
||||||
if "double_block" in patches:
|
if "double_block" in patches:
|
||||||
for p in patches["double_block"]:
|
for p in patches["double_block"]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user