-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into improve/extra_model_paths_template
- Loading branch information
Showing
221 changed files
with
125,469 additions
and
44,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
..\python_embeded\python.exe .\update.py ..\ComfyUI\ --stable | ||
if exist update_new.py ( | ||
move /y update_new.py update.py | ||
echo Running updater again since it got updated. | ||
..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update --stable | ||
) | ||
if "%~1"=="" pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/web/assets/** linguist-generated | ||
/web/** linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Close stale issues' | ||
on: | ||
schedule: | ||
# Run daily at 430 am PT | ||
- cron: '30 11 * * *' | ||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
stale-issue-message: "This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically." | ||
days-before-stale: 30 | ||
days-before-close: 7 | ||
stale-issue-label: 'Stale' | ||
only-labels: 'User Support' | ||
exempt-all-assignees: true | ||
exempt-all-milestones: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
.github/workflows/test-ui.yaml → .github/workflows/test-unit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
ComfyUI | ||
======= | ||
The most powerful and modular stable diffusion GUI and backend. | ||
----------- | ||
<div align="center"> | ||
|
||
# ComfyUI | ||
**The most powerful and modular diffusion model GUI and backend.** | ||
|
||
|
||
[![Website][website-shield]][website-url] | ||
[![Dynamic JSON Badge][discord-shield]][discord-url] | ||
[![Matrix][matrix-shield]][matrix-url] | ||
<br> | ||
[![][github-release-shield]][github-release-link] | ||
[![][github-release-date-shield]][github-release-link] | ||
[![][github-downloads-shield]][github-downloads-link] | ||
[![][github-downloads-latest-shield]][github-downloads-link] | ||
|
||
[matrix-shield]: https://img.shields.io/badge/Matrix-000000?style=flat&logo=matrix&logoColor=white | ||
[matrix-url]: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org | ||
[website-shield]: https://img.shields.io/badge/ComfyOrg-4285F4?style=flat | ||
[website-url]: https://www.comfy.org/ | ||
<!-- Workaround to display total user from https://github.com/badges/shields/issues/4500#issuecomment-2060079995 --> | ||
[discord-shield]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2Fcomfyorg%3Fwith_counts%3Dtrue&query=%24.approximate_member_count&logo=discord&logoColor=white&label=Discord&color=green&suffix=%20total | ||
[discord-url]: https://www.comfy.org/discord | ||
|
||
[github-release-shield]: https://img.shields.io/github/v/release/comfyanonymous/ComfyUI?style=flat&sort=semver | ||
[github-release-link]: https://github.com/comfyanonymous/ComfyUI/releases | ||
[github-release-date-shield]: https://img.shields.io/github/release-date/comfyanonymous/ComfyUI?style=flat | ||
[github-downloads-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/total?style=flat | ||
[github-downloads-latest-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/latest/total?style=flat&label=downloads%40latest | ||
[github-downloads-link]: https://github.com/comfyanonymous/ComfyUI/releases | ||
|
||
![ComfyUI Screenshot](comfyui_screenshot.png) | ||
</div> | ||
|
||
This ui will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface. For some workflow examples and see what ComfyUI can do you can check out: | ||
### [ComfyUI Examples](https://comfyanonymous.github.io/ComfyUI_examples/) | ||
|
@@ -48,6 +75,7 @@ Workflow examples can be found on the [Examples page](https://comfyanonymous.git | |
|------------------------------------|--------------------------------------------------------------------------------------------------------------------| | ||
| Ctrl + Enter | Queue up current graph for generation | | ||
| Ctrl + Shift + Enter | Queue up current graph as first for generation | | ||
| Ctrl + Alt + Enter | Cancel current generation | | ||
| Ctrl + Z/Ctrl + Y | Undo/Redo | | ||
| Ctrl + S | Save workflow | | ||
| Ctrl + O | Load workflow | | ||
|
@@ -66,10 +94,14 @@ Workflow examples can be found on the [Examples page](https://comfyanonymous.git | |
| Alt + `+` | Canvas Zoom in | | ||
| Alt + `-` | Canvas Zoom out | | ||
| Ctrl + Shift + LMB + Vertical drag | Canvas Zoom in/out | | ||
| P | Pin/Unpin selected nodes | | ||
| Ctrl + G | Group selected nodes | | ||
| Q | Toggle visibility of the queue | | ||
| H | Toggle visibility of history | | ||
| R | Refresh graph | | ||
| Double-Click LMB | Open node quick search palette | | ||
| Shift + Drag | Move multiple wires at once | | ||
| Ctrl + Alt + LMB | Disconnect all wires from clicked slot | | ||
|
||
Ctrl can also be replaced with Cmd instead for macOS users | ||
|
||
|
@@ -105,17 +137,17 @@ Put your VAE in: models/vae | |
### AMD GPUs (Linux only) | ||
AMD users can install rocm and pytorch with pip if you don't have it already installed, this is the command to install the stable version: | ||
|
||
```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0``` | ||
```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1``` | ||
|
||
This is the command to install the nightly with ROCm 6.0 which might have some performance improvements: | ||
This is the command to install the nightly with ROCm 6.2 which might have some performance improvements: | ||
|
||
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.1``` | ||
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2``` | ||
|
||
### NVIDIA | ||
|
||
Nvidia users should install stable pytorch using this command: | ||
|
||
```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121``` | ||
```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124``` | ||
|
||
This is the command to install pytorch nightly instead which might have performance improvements: | ||
|
||
|
@@ -200,7 +232,7 @@ To use a textual inversion concepts/embeddings in a text prompt put them in the | |
|
||
Use ```--preview-method auto``` to enable previews. | ||
|
||
The default installation includes a fast latent preview method that's low-resolution. To enable higher-quality previews with [TAESD](https://github.com/madebyollin/taesd), download the [taesd_decoder.pth](https://github.com/madebyollin/taesd/raw/main/taesd_decoder.pth) (for SD1.x and SD2.x) and [taesdxl_decoder.pth](https://github.com/madebyollin/taesd/raw/main/taesdxl_decoder.pth) (for SDXL) models and place them in the `models/vae_approx` folder. Once they're installed, restart ComfyUI to enable high-quality previews. | ||
The default installation includes a fast latent preview method that's low-resolution. To enable higher-quality previews with [TAESD](https://github.com/madebyollin/taesd), download the [taesd_decoder.pth, taesdxl_decoder.pth, taesd3_decoder.pth and taef1_decoder.pth](https://github.com/madebyollin/taesd/) and place them in the `models/vae_approx` folder. Once they're installed, restart ComfyUI and launch it with `--preview-method taesd` to enable high-quality previews. | ||
|
||
## How to use TLS/SSL? | ||
Generate a self-signed certificate (not appropriate for shared/production use) and key by running the command: `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname"` | ||
|
@@ -216,6 +248,47 @@ Use `--tls-keyfile key.pem --tls-certfile cert.pem` to enable TLS/SSL, the app w | |
|
||
See also: [https://www.comfy.org/](https://www.comfy.org/) | ||
|
||
## Frontend Development | ||
|
||
As of August 15, 2024, we have transitioned to a new frontend, which is now hosted in a separate repository: [ComfyUI Frontend](https://github.com/Comfy-Org/ComfyUI_frontend). This repository now hosts the compiled JS (from TS/Vue) under the `web/` directory. | ||
|
||
### Reporting Issues and Requesting Features | ||
|
||
For any bugs, issues, or feature requests related to the frontend, please use the [ComfyUI Frontend repository](https://github.com/Comfy-Org/ComfyUI_frontend). This will help us manage and address frontend-specific concerns more efficiently. | ||
|
||
### Using the Latest Frontend | ||
|
||
The new frontend is now the default for ComfyUI. However, please note: | ||
|
||
1. The frontend in the main ComfyUI repository is updated weekly. | ||
2. Daily releases are available in the separate frontend repository. | ||
|
||
To use the most up-to-date frontend version: | ||
|
||
1. For the latest daily release, launch ComfyUI with this command line argument: | ||
|
||
``` | ||
--front-end-version Comfy-Org/ComfyUI_frontend@latest | ||
``` | ||
|
||
2. For a specific version, replace `latest` with the desired version number: | ||
|
||
``` | ||
--front-end-version Comfy-Org/[email protected] | ||
``` | ||
|
||
This approach allows you to easily switch between the stable weekly release and the cutting-edge daily updates, or even specific versions for testing purposes. | ||
|
||
### Accessing the Legacy Frontend | ||
|
||
If you need to use the legacy frontend for any reason, you can access it using the following command line argument: | ||
|
||
``` | ||
--front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest | ||
``` | ||
|
||
This will use a snapshot of the legacy frontend preserved in the [ComfyUI Legacy Frontend repository](https://github.com/Comfy-Org/ComfyUI_legacy_frontend). | ||
|
||
# QA | ||
|
||
### Which GPU should I buy for this? | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ComfyUI Internal Routes | ||
|
||
All routes under the `/internal` path are designated for **internal use by ComfyUI only**. These routes are not intended for use by external applications may change at any time without notice. |
Empty file.
Oops, something went wrong.