receyuki / comfyui-prompt-reader-node

The ultimate solution for managing image metadata and multi-tool compatibility. ComfyUI node version of the SD Prompt Reader
MIT License
289 stars 22 forks source link

[BUG] - SDParameterGenerator error "Value not in list: aspect_ratio" #89

Closed mkbon closed 2 months ago

mkbon commented 3 months ago

Description

An error occurred with SDParameterGenerator. It does not occur when the aspect_ratio is set to "custom".

It seems to be happening after the following ComfyUI commit: https://github.com/comfyanonymous/ComfyUI/commit/5cfe38f41c7091b0fd954877d9d7427a8b438b1a

* SDParameterGenerator 1:
  - Value not in list: aspect_ratio: '3:4 - 672x864' not in ['custom', '1:1 - 512x512 | 768x768 | 1024x1024', '4:3 - 576x448 | 864x672 | 1152x896', '3:4 - 448x576 | 672x864 | 896x1152', '3:2 - 608x416 | 912x624 | 1216x832', '2:3 - 416x608 | 624x912 | 832x1216', '16:9 - 672x384 | 1008x576 | 1344x768', '9:16 - 384x672 | 576x1008 | 768x1344', '21:9 - 768x320 | 1152x480 | 1536x640', '9:21 - 320x768 | 480x1152 | 640x1536']
Output will be ignored
invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}

Reproduction steps

No response

Image file

image

receyuki commented 2 months ago

I've fixed the issue in the latest version. Please try the new version.

mkbon commented 2 months ago

Thank you for fixing the bug. I have confirmed that the issue has been resolved.