stavsap / ComfyUI-Discord-Bot

Apache License 2.0
5 stars 2 forks source link

Failed to validate prompt for output save_image_websocket_node #4

Open Sorbit16 opened 2 days ago

Sorbit16 commented 2 days ago

Trying to get this working with flux1-dev-bnb-nf4-v2.safetensors.

I'm using the flux.dev workflow json i found here:

https://comfyanonymous.github.io/ComfyUI_examples/flux/

im getting an error when asking the bot to generate any image:

got prompt Failed to validate prompt for output save_image_websocket_node:

I'm really new to all of this so not sure if this is even doable. thanks in advance.

stavsap commented 2 days ago

Hi,

you cant just use a workflow In comfy, you need to set it here

https://github.com/stavsap/ComfyUI-Discord-Bot/blob/34056779abeb62cab86b1d2c0d69efb42d082284/handlers/prompts.py#L867

and then to wrap it with a "Handler", for example for supported Flux: https://github.com/stavsap/ComfyUI-Discord-Bot/blob/34056779abeb62cab86b1d2c0d69efb42d082284/handlers/handlers.py#L1057

if you want to modify the usage of checkpoint in the Flux handler you can set it here: https://github.com/stavsap/ComfyUI-Discord-Bot/blob/34056779abeb62cab86b1d2c0d69efb42d082284/handlers/prompts.py#L944

but you would need to place you model in the UNET folder.

stavsap commented 2 days ago

if you want to write your own custom handler you can do it and read here how to integrate it:

https://github.com/stavsap/ComfyUI-Discord-Bot/blob/main/Docs/Handlers.md#custom-handlers