mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 02:23:06 +08:00
Fixed FlipFlipModule.execute_blocks having hardcoded strings from Qwen
This commit is contained in:
parent
6d3ec9fcf3
commit
8d7b22b720
@ -56,8 +56,8 @@ class FlipFlopModule(torch.nn.Module):
|
||||
out = func(i, block, *out, *args, **kwargs)
|
||||
if isinstance(out, torch.Tensor):
|
||||
out = (out,)
|
||||
if "transformer_blocks" in self.flipflop:
|
||||
holder = self.flipflop["transformer_blocks"]
|
||||
if block_type in self.flipflop:
|
||||
holder = self.flipflop[block_type]
|
||||
with holder.context() as ctx:
|
||||
for i, block in enumerate(holder.blocks):
|
||||
out = ctx(func, i, block, *out, *args, **kwargs)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user