From bd278d03801d7d92c07216f98af9d9f38e1526b9 Mon Sep 17 00:00:00 2001 From: cubiq Date: Mon, 8 Jul 2024 19:19:39 +0200 Subject: [PATCH] should prevent errors with older workflows and the sdxl size picker --- misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.py b/misc.py index 6169d4e..7ef8b83 100644 --- a/misc.py +++ b/misc.py @@ -213,7 +213,7 @@ class SDXLEmptyLatentSizePicker: FUNCTION = "execute" CATEGORY = "essentials/utilities" - def execute(self, resolution, batch_size, width_override, height_override): + def execute(self, resolution, batch_size, width_override=0, height_override=0): width, height = resolution.split(" ")[0].split("x") width = width_override if width_override > 0 else int(width) height = height_override if height_override > 0 else int(height)