util nodes now take lists

This commit is contained in:
Kyle Steinfeld
2025-06-08 14:47:38 -07:00
parent 7a7672516b
commit 73d2db30a2
6 changed files with 186 additions and 1040 deletions
+10 -1
View File
@@ -122,7 +122,12 @@ class PseudoProcessMaterialPrompts:
mat_msks = mat_msks_lst
# if scale_to is a list, use the first element
if isinstance(scale_msk_to, list) and len(scale_msk_to)>0: scale_msk_to = scale_msk_to[0]
if isinstance(scale_msk_to, list) and len(scale_msk_to)>0: scale_msk_to = scale_msk_to[0]
# verify scale_to value - ComfyUI is behaving weirdly about the default value
if not scale_img_to or scale_img_to not in ["512", "1024"]:
scale_img_to = "1024"
# Convert scale_to from string to int
scale_to_int = int(scale_msk_to)
if scale_to_int not in [512, 1024]:
@@ -190,6 +195,10 @@ class PseudoProcessImagePrompt:
def func(self, img, scale_img_to):
print(f"[pseudocomfy] ProcessImagePrompt\n\tscale_to: {scale_img_to}\n\timg: {tuple(img.shape)}")
# verify scale_to value - ComfyUI is behaving weirdly about the default value
if not scale_img_to or scale_img_to not in ["512", "1024"]:
scale_img_to = "1024"
# Convert scale_to from string to int
scale_to_int = int(scale_img_to)
if scale_to_int not in [512, 1024]: