6 Commits
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,2 +1,3 @@
**/__pycache__/
*.log
**/.DS_Store
+1 -1
View File
@@ -88,7 +88,7 @@ class AttentionCouple:
if not self.sdxl:
for id in [1,2,4,5,7,8]: # id of input_blocks that have cross attention
set_model_patch_replace(new_model, self.make_patch(new_model.model.diffusion_model.input_blocks[id][1].transformer_blocks[0].attn2), ("input", id))
set_model_patch_replace(new_model, self.make_patch(new_model.model.diffusion_model.middle_block[1].transformer_blocks[0].attn2), ("middle", id))
set_model_patch_replace(new_model, self.make_patch(new_model.model.diffusion_model.middle_block[1].transformer_blocks[0].attn2), ("middle", 0))
for id in [3,4,5,6,7,8,9,10,11]: # id of output_blocks that have cross attention
set_model_patch_replace(new_model, self.make_patch(new_model.model.diffusion_model.output_blocks[id][1].transformer_blocks[0].attn2), ("output", id))
else:
+1 -1
View File
@@ -62,7 +62,7 @@ class ComfyCouple:
mask_rect_second_width = width_first
mask_rect_second_height = height
elif orientation == "vertical":
height_first = int(width * center)
height_first = int(height * center)
mask_rect_first_x = 0
mask_rect_first_y = height_first
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 391 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB