This extension provides image generation from ComfyUI inside oobabooga's text generation webui.
Disclaimer: this extension is in no way, shape or form associated with ComfyUI or SillyTavern.
- Customize any image parameters for ComfyUI generation:
- Model
- VAE
- Resolution presets (with individual width & height)
- Sampler
- Scheduler
- Steps
- CFG Scale
- Fixed and random seeds
- Generation buttons directly from the chat tab
- Generate image prompts from your text messages using your text models
- Add quality parameters that apply to all characters
- Add custom prompts for different characters
- Import your custom workflows (API format workflows)
- Use SillyTavern's custom variables to send to ComfyUI from WebUI!
- Send your avatar image to the workflow
- Send the character's avatar image to the workflow
- Workflow code editor (basic)
- Automatic model unloading for WebUI and ComfyUI models to save VRAM
- Extension updater
- Edit prompts before generating
If you have git installed in your system, please clone this extension inside the extensions folder.
The extension can be installed in the general extensions
folder, or the user_data/extensions
. It is recommended to install in the user_data/extensions
folder for easier data migration on version changes.
To download this extension, click the green "Code" button, and select "Download ZIP.". Finally, extract the contents inside the general extensions
folder, or the user_data/extensions
. It is recommended to install in the user_data/extensions
folder for easier data migration on version changes.
If you used a 'one-click-installer', open the CMD_FLAGS.txt
file inside your installation folder.
If you used the 'portable' version or newer, you can find CMD_FLAGS.txt
inside the user_data
folder.
To activate the extension, you must add the following to an existing line or new line (if no other startup flags are used):
--extensions skdv_comfyui
With this, the extension will become active and you will see upon restart of the WebUI a new section with the extension contents.
For more information on how to install and activate, please refer to the original documentation by oobaboga
- To use a ComfyUI Workflow, make sure to export the workflow in API compatible format.
- If the WebUI takes a while to load the extension, please restart the WebUI process. This happens (unknowingly) from time to time and will appreciate if anyone can find a fix.
- If your ComfyUI Workflow doesn't seem to work, please check first if your JSON file is valid. You can use SillyTavern to verify the workflow, as workflow files are also compatible with that software.
This extension takes some time to make, and I love working on it and fixing it for the community.
Want to support my development? Donate me over Paypal!
Fixes:
- Made the extension compatible with the latest WebUI version (3.9+)
- Fixed images not being able to load from generated folder - now generates inside
user_data/cache/comfyui
- Fixes missing
github.py
module, replaced with legacy module.- In the future, this feature will change to only notify of a new update instead of updating, reducing the possibility of breaking the extension.
Features:
- Made optional to select a VAE when generating an image
Fixes:
- Fixes issue #2 where the method to unload models was moved. Thank you @zboris!
- Added better error messaging when a JSON workflow file is not valid
- Added support for ComfyUI models and VAEs located in subpaths
- Fixed a prompt confirmation dialog error where it would appear again when a generation finished
- Fixed a styling issue for the seed control buttons in the ComfyUI tab