From 668088436e9d29d5d415006bc592900c643fee84 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 16:51:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/diffusion.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/studio/backend/core/inference/diffusion.py b/studio/backend/core/inference/diffusion.py index c0473e774b..444a80c042 100644 --- a/studio/backend/core/inference/diffusion.py +++ b/studio/backend/core/inference/diffusion.py @@ -266,9 +266,7 @@ def _clamp_max_side(img: Any, max_side: int) -> Any: return img.resize((nw, nh), Image.LANCZOS) -def _compile_shape_dims( - workflow: str, init_pil: Any, width: int, height: int -) -> tuple[int, int]: +def _compile_shape_dims(workflow: str, init_pil: Any, width: int, height: int) -> tuple[int, int]: """The (width, height) a generation's forward ACTUALLY runs at, for static compile-cache shape registration. @@ -2921,9 +2919,7 @@ class DiffusionBackend: # image-conditioned workflows run at the input image's size, not the # slider's (see _compile_shape_dims), and a mis-registered slider # shape would keep the truly-used shape out of the saved bundle. - reg_width, reg_height = _compile_shape_dims( - workflow, init_pil, width, height - ) + reg_width, reg_height = _compile_shape_dims(workflow, init_pil, width, height) compile_cache.register_shape( state.compile_cache_ctx, (reg_width, reg_height, int(batch_size)),