From 14a8eebbb8fe559f4231a5b9ae4c7d9d7018b35c Mon Sep 17 00:00:00 2001 From: QualiaRain <44004657+QualiaRain@users.noreply.github.com> Date: Sat, 13 Jun 2026 00:11:25 -0400 Subject: [PATCH] fix(hypertile): correct width/height mapping in hires set_resolution hr_upscale_to_x is the width dimension and hr_upscale_to_y the height (see processing_class.py); set_resolution assigned them transposed, producing swapped HyperTile geometry on non-square hires passes. Co-Authored-By: Claude --- modules/sd_hijack_hypertile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sd_hijack_hypertile.py b/modules/sd_hijack_hypertile.py index b072df7ad..eead36266 100644 --- a/modules/sd_hijack_hypertile.py +++ b/modules/sd_hijack_hypertile.py @@ -259,8 +259,8 @@ def set_resolution(p, hr=False): if hr: x = getattr(p, 'hr_upscale_to_x', 0) y = getattr(p, 'hr_upscale_to_y', 0) - width = y if y > 0 else p.width - height = x if x > 0 else p.height + width = x if x > 0 else p.width + height = y if y > 0 else p.height else: width = p.width height = p.height