Embed ComfyUI workflows in different sections of the Webui
 
 
 
Go to file
Thomas Pipher 10e95a42e2
Added the ability to disable port (#210)
* Added the ability to disable port from being added so that users that have server redirects via nginx can use it

* restrict canonicalize_url to webui process

---------

Co-authored-by: ljleb <lebel.louisjacob@gmail.com>
2024-02-01 07:17:42 -05:00
.github/workflows Start comfyui in subprocess instead of multiprocessing (#101) 2023-08-10 14:24:58 -04:00
comfyui_custom_nodes Improve patch for custom nodes (#201) 2024-01-09 23:57:58 -05:00
comfyui_custom_scripts/extensions Improve patch for custom nodes (#201) 2024-01-09 23:57:58 -05:00
javascript reload full (#191) 2023-12-09 03:13:45 -05:00
lib_comfyui Added the ability to disable port (#210) 2024-02-01 07:17:42 -05:00
resources update readme gif (#78) 2023-07-23 12:06:58 -04:00
scripts Add workflows that run later in the pipeline (#177) 2023-11-19 01:52:57 -05:00
tests Add workflows that run later in the pipeline (#177) 2023-11-19 01:52:57 -05:00
.gitignore Add more workflows (#98) 2023-08-05 23:21:41 -04:00
LICENSE Initial commit 2023-03-19 06:13:42 -04:00
README.md Update README.md 2023-09-20 14:10:07 -04:00
install.py kill comfyui server on webui exit (#193) 2023-12-22 00:13:49 -05:00
install_comfyui.py allow to install manager on install page (#173) 2023-11-05 13:47:51 -05:00
preload.py Webui postprocess hook with nodes (#63) 2023-07-23 11:19:00 -04:00
requirements-test.txt Start comfyui in subprocess instead of multiprocessing (#101) 2023-08-10 14:24:58 -04:00
requirements.txt kill comfyui server on webui exit (#193) 2023-12-22 00:13:49 -05:00
style.css Enable checkbox (#124) 2023-08-13 13:32:37 -04:00

README.md

sd-webui-comfyui

Overview

sd-webui-comfyui is an extension for A1111 webui that embeds ComfyUI workflows in different sections of the normal pipeline of the webui. This allows to create ComfyUI nodes that interact directly with some parts of the webui's normal pipeline.

front-page-gif

Features

  • Use ComfyUI directly into the Webui
  • Support for loading custom nodes from other Webui extensions
  • Integration of ComfyUI workflows directly into the Webui's pipeline, such as preprocess, preprocess (latent), unet, postprocess (latent), postprocess, transformer text encode, etc.
  • Webui nodes for sharing resources and data, such as the model, the prompt, etc.

For a full overview of all the advantageous features this extension adds to ComfyUI and to the Webui, check out the wiki page.

Officially supported versions

  • A1111 Webui >= 1.5.1
  • ComfyUI == latest

Installation

  1. Go to Extensions > Available
  2. Click the Load from: button
  3. Enter "ComfyUI" in the search bar
  4. Click the Install button of the ComfyUI Tab cell
  5. Restart the webui
  6. Go to the ComfyUI tab, and follow the instructions

Remote users, reverse proxies, etc.

The extension is now able to load comfyui for remote users using a local reverse proxy. This is necessary when the webui is started remotely, for example when:

  • using the command line arguments --share, or --ngrok
  • using reverse proxy options of the sd-webui-tunnels extension

If you want the extension to keep the reverse proxy disabled or always enable it for some reason, you can update your preferences in the settings tab.

To start the reverse proxy, the extension needs the command line argument --api for the webui, which starts a fastapi server. Without fastapi, the extension will not be able to create a reverse proxy for comfyui, and then remote browsers will not be able to load comfyui iframes.

In practice, if the webui url is http://localhost:7860, then the extension effectively creates two reverse proxies:

Contributing

We welcome contributions from anyone who is interested in improving sd-webui-comfyui. If you would like to contribute, please follow these steps:

  1. Fork the repository and create a new branch for your feature or bug fix.
  2. Implement your changes, adding any necessary documentation and tests.
  3. Submit a pull request.
  4. We will review your contribution as soon as possible and provide feedback.

License

MIT

Contact

If you have any questions or concerns, please leave an issue, or start a thread in the discussions.

Thank you for your interest!