-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Thanks for your great job, but I found a bug that really confuse me.
It seems like that ComfyScript can't recognize some nodes correctly. In my workflow, I have a node (Image Resize from Image Resize for ComfyUI)

In the output script, it gave me "image, _ = ImageResize(image, 'crop to ratio', 0, 1024, 0, 'any', '9:16', 0.5, 0, None)"
Run it, error occurred:
"Traceback (most recent call last):
File "/home/ruanxy/work/gen_tools/main.py", line 10, in
image, _ = ImageResize(image, 'crop to ratio', 0, 1024, 0, 'any', '9:16', 0.5, 0, None)
ValueError: too many values to unpack (expected 2)
"
I tried to fix it to add a return value like this: "image, _ = ImageResize(image, 'crop to ratio', 0, 1024, 0, 'any', '9:16', 0.5, 0, None)"
new error occurred:
"
ERROR:root:Failed to validate prompt for output SaveImage.0:
ERROR:root:* ImageResize+ ImageResize+.0:
ERROR:root: - Failed to convert an input value to a INT value: width, crop to ratio, invalid literal for int() with base 10: 'crop to ratio'
ERROR:root: - Value not in list: interpolation: '1024' not in ['nearest', 'bilinear', 'bicubic', 'area', 'nearest-exact', 'lanczos']
ERROR:root: - Value not in list: condition: 'any' not in ['always', 'only if bigger', 'only if smaller']
"
Through the error infomation I realized that ComfyScript recognized the node as (Image Resize from ComfyUI Essentials)

I want to know how to deal with this kind of situation.
Thank you.