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.
- 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.
- A1111 Webui >=
1.5.1
- ComfyUI ==
latest
- Go to Extensions > Available
- Click the
Load from:
button - Enter "ComfyUI" in the search bar
- Click the
Install
button of the ComfyUI Tab cell - Restart the webui
- Go to the
ComfyUI
tab, and follow the instructions
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 https://localhost:7860
, then the extension effectively creates two reverse proxies:
- An HTTP reverse proxy at POST, GET, PUT and DELETE https://localhost:7860/sd-webui-comfyui/comfyui
- A websockets reverse proxy at ws:https://localhost:7860/sd-webui-comfyui/comfyui/ws
We welcome contributions from anyone who is interested in improving sd-webui-comfyui. If you would like to contribute, please follow these steps:
- Fork the repository and create a new branch for your feature or bug fix.
- Implement your changes, adding any necessary documentation and tests.
- Submit a pull request.
- We will review your contribution as soon as possible and provide feedback.
MIT
If you have any questions or concerns, please leave an issue, or start a thread in the discussions.
Thank you for your interest!