Skip to content

Commit

Permalink
Fix/aspect ratios (#30)
Browse files Browse the repository at this point in the history
* Fix: aspect ratios now work correctly in predict.py
  • Loading branch information
zsxkib authored Sep 9, 2024
1 parent 8c881c9 commit 3d03901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ def predict( # pyright: ignore
else: # is_txt2img_mode
print("[!] txt2img mode")
pipe = self.pipes[model]
flux_kwargs["width"] = width
flux_kwargs["height"] = height

if replicate_weights:
flux_kwargs["joint_attention_kwargs"] = {"scale": lora_scale}
Expand Down

0 comments on commit 3d03901

Please sign in to comment.