mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-14 21:57:33 +08:00
made error message more correct
This commit is contained in:
parent
7fc1aa2323
commit
4b729e4537
@ -323,7 +323,7 @@ class ByteDanceSeedreamNode(IO.ComfyNode):
|
|||||||
mp_provided = out_num_pixels / 1_000_000.0
|
mp_provided = out_num_pixels / 1_000_000.0
|
||||||
if ("seedream-4-5" in model or "seedream-5-0" in model) and out_num_pixels < 3686400:
|
if ("seedream-4-5" in model or "seedream-5-0" in model) and out_num_pixels < 3686400:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Minimum image resolution that Seedream 4.5 can generate is 3.68MP, "
|
f"Minimum image resolution for the selected model is 3.68MP, "
|
||||||
f"but {mp_provided:.2f}MP provided."
|
f"but {mp_provided:.2f}MP provided."
|
||||||
)
|
)
|
||||||
if "seedream-4-0" in model and out_num_pixels < 921600:
|
if "seedream-4-0" in model and out_num_pixels < 921600:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user