Skip to content

Commit

Permalink
Merge pull request #281 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: treat SDXL hires fix like cascade (1024x longest dim)
  • Loading branch information
tazlin committed Jul 8, 2024
2 parents 04237b8 + c0bab91 commit d5c62be
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 d5c62be

Please sign in to comment.