should prevent errors with older workflows and the sdxl size picker

This commit is contained in:
cubiq
2024-07-08 19:19:39 +02:00
parent 8b0347076f
commit bd278d0380
+1 -1
View File
@@ -213,7 +213,7 @@ class SDXLEmptyLatentSizePicker:
FUNCTION = "execute" FUNCTION = "execute"
CATEGORY = "essentials/utilities" 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, height = resolution.split(" ")[0].split("x")
width = width_override if width_override > 0 else int(width) width = width_override if width_override > 0 else int(width)
height = height_override if height_override > 0 else int(height) height = height_override if height_override > 0 else int(height)