A web application which manages batch image generation via the ComfyUI API and websocket interfaces.🤖
Here's a simple demo on how to run multiple image generations with the tool. Run once, and leave it for later.
- Click the
Add Prompt
button. This will display the workflow editor. - Paste your workflow and modify it as needed.
- Click
Save Workflow
to add the workflow to the queue. - You may remove or add new workflow as required.
- Click
Connect
to connect to the ComfyUI websocket server. - Click
Run All
to run all queues, or clickContinue
to continue previously interrupted processing. You may alsopause
the queued processing anytime you want. All states are saved via localstorage for when you want to resume for a later time.
Download this repo or clone via
git clone [email protected]:rsandagon/comfyui-batch-image-generation.git
*
Once downloaded. Extract the files to your Comfy directory <Installation Path>\ComfyUI\web
You may now run the application using the url http://127.0.0.1:8188/batch.htm
.
How to download COmfyUI workflows in api format?
From comfyanonymous
notes, simply enable to "enable dev mode options"
in the settings of the UI (gear beside the "Queue Size: "). This will add
a button on the UI to save workflows in api format.
How to connect to ComfyUI running in a different server?
You may modify the var COMFTY_URL = "http://127.0.0.1:8188"
from app.js
to point to the server. Note that you will be needing to configure the websocket connection and the API fetchsing depending on the CORS support and authentication.
Animatronext 🚧 I'll be posting demo videos and sample usage soon!
- Comfyanonymous for providing an amazing tool that is ComfyUI! Thank you!🙇♀️
- CompVis, StableDiffusion team for continuing to maintain StableDiffuion models and having it opensourced.
- Hugging Face Optimum team for making the BetterTransformer API so easily accessible.