Skip to content

ModelSurge/sd-webui-comfyui

Repository files navigation

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!