Skip to content

Commit 23d59ab

Browse files
chore: ruff
1 parent cf7fa5b commit 23d59ab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

invokeai/backend/flux/extensions/kontext_extension.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,8 @@ def _prepare_kontext(self) -> tuple[torch.Tensor, torch.Tensor]:
169169
# Calculate potential canvas dimensions for each tiling option
170170
# Option 1: Tile vertically (below existing content)
171171
potential_h_vertical = canvas_h + latent_height
172-
potential_w_vertical = max(canvas_w, latent_width)
173172

174173
# Option 2: Tile horizontally (to the right of existing content)
175-
potential_h_horizontal = max(canvas_h, latent_height)
176174
potential_w_horizontal = canvas_w + latent_width
177175

178176
# Choose arrangement that minimizes the maximum dimension

0 commit comments

Comments
 (0)