Skip to content

Commit

Permalink
fix: treat SDXL hires fix like cascade (1024x longest dim)
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 8, 2024
1 parent 77f5b4d commit c0bab91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hordelib/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,10 @@ def _final_pipeline_adjustments(self, payload, pipeline_data) -> tuple[dict, lis
original_width, original_height = (1024, 1024)

new_width, new_height = (None, None)

if model_details and model_details.get("baseline") == "stable_cascade":
baseline = None
if model_details:
baseline = model_details.get("baseline")
if baseline and (baseline == "stable_cascade" or baseline == "stable_diffusion_xl"):
new_width, new_height = ImageUtils.get_first_pass_image_resolution_max(
original_width,
original_height,
Expand Down
Binary file modified images_expected/sdxl_text_to_image_hires_fix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0bab91

Please sign in to comment.