Skip to content

Commit

Permalink
Fix potential issue with hydit controlnets.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Aug 30, 2024
1 parent ec28cd9 commit 63fafae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/ldm/hydit/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def forward(self,
for layer, block in enumerate(self.blocks):
if layer > self.depth // 2:
if controls is not None:
skip = skips.pop() + controls.pop()
skip = skips.pop() + controls.pop().to(dtype=x.dtype)
else:
skip = skips.pop()
x = block(x, c, text_states, freqs_cis_img, skip) # (N, L, D)
Expand Down

0 comments on commit 63fafae

Please sign in to comment.