Skip to content

Commit

Permalink
fix flux controlnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Jan 13, 2025
1 parent 1ba6b5f commit 85f6fdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fbcache_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ def validate_use_cache(use_cached):
model = model.clone()
diffusion_model = model.get_model_object(object_to_patch)

if diffusion_model.__class__.__name__ in ("UNetModel", "FLUX"):
if diffusion_model.__class__.__name__ in ("UNetModel", "Flux"):

if diffusion_model.__class__.__name__ == "UNetModel":
create_patch_function = first_block_cache.create_patch_unet_model__forward
elif diffusion_model.__class__.__name__ == "FLUX":
elif diffusion_model.__class__.__name__ == "Flux":
create_patch_function = first_block_cache.create_patch_flux_forward_orig
else:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion first_block_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def call_remaining_blocks(self, blocks_replace, control, img, txt, vec,
pe, attn_mask):
original_hidden_states = img

for i, block in enumerate(self.double_block):
for i, block in enumerate(self.double_blocks):
if i < 1:
continue
if ("double_block", i) in blocks_replace:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "wavespeed"
description = "The all in one inference optimization solution for ComfyUI, universal, flexible, and fast."
version = "1.1.2"
version = "1.1.3"
license = {file = "LICENSE"}

[project.urls]
Expand Down

0 comments on commit 85f6fdf

Please sign in to comment.