DegMaTsu commited on
Commit
2d8ca87
·
verified ·
1 Parent(s): 359fa44

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +414 -414
  2. app.py +8 -11
README.md CHANGED
@@ -1,414 +1,414 @@
1
- ---
2
- title: ComfyUI Reactor Video Face Swap HYPERSWAP (CPU)
3
- emoji: 🎥🅥🅗🅢
4
- colorFrom: red
5
- colorTo: yellow
6
- sdk: gradio
7
- app_file: app.py
8
- pinned: false
9
- license: mit
10
- short_description: CPU = UNLIMIT (DUPLICATE this Space)!
11
- ---
12
- <div align="center">
13
-
14
- # ComfyUI
15
- **The most powerful and modular visual AI engine and application.**
16
-
17
-
18
- [![Website][website-shield]][website-url]
19
- [![Dynamic JSON Badge][discord-shield]][discord-url]
20
- [![Twitter][twitter-shield]][twitter-url]
21
- [![Matrix][matrix-shield]][matrix-url]
22
- <br>
23
- [![][github-release-shield]][github-release-link]
24
- [![][github-release-date-shield]][github-release-link]
25
- [![][github-downloads-shield]][github-downloads-link]
26
- [![][github-downloads-latest-shield]][github-downloads-link]
27
-
28
- [matrix-shield]: https://img.shields.io/badge/Matrix-000000?style=flat&logo=matrix&logoColor=white
29
- [matrix-url]: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org
30
- [website-shield]: https://img.shields.io/badge/ComfyOrg-4285F4?style=flat
31
- [website-url]: https://www.comfy.org/
32
- <!-- Workaround to display total user from https://github.com/badges/shields/issues/4500#issuecomment-2060079995 -->
33
- [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
34
- [discord-url]: https://www.comfy.org/discord
35
- [twitter-shield]: https://img.shields.io/twitter/follow/ComfyUI
36
- [twitter-url]: https://x.com/ComfyUI
37
-
38
- [github-release-shield]: https://img.shields.io/github/v/release/comfyanonymous/ComfyUI?style=flat&sort=semver
39
- [github-release-link]: https://github.com/comfyanonymous/ComfyUI/releases
40
- [github-release-date-shield]: https://img.shields.io/github/release-date/comfyanonymous/ComfyUI?style=flat
41
- [github-downloads-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/total?style=flat
42
- [github-downloads-latest-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/latest/total?style=flat&label=downloads%40latest
43
- [github-downloads-link]: https://github.com/comfyanonymous/ComfyUI/releases
44
-
45
- ![ComfyUI Screenshot](https://github.com/user-attachments/assets/7ccaf2c1-9b72-41ae-9a89-5688c94b7abe)
46
- </div>
47
-
48
- ComfyUI lets you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface. Available on Windows, Linux, and macOS.
49
-
50
- ## Get Started
51
-
52
- #### [Desktop Application](https://www.comfy.org/download)
53
- - The easiest way to get started.
54
- - Available on Windows & macOS.
55
-
56
- #### [Windows Portable Package](#installing)
57
- - Get the latest commits and completely portable.
58
- - Available on Windows.
59
-
60
- #### [Manual Install](#manual-install-windows-linux)
61
- Supports all operating systems and GPU types (NVIDIA, AMD, Intel, Apple Silicon, Ascend).
62
-
63
- ## [Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
64
- See what ComfyUI can do with the [example workflows](https://comfyanonymous.github.io/ComfyUI_examples/).
65
-
66
- ## Features
67
- - Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
68
- - Image Models
69
- - SD1.x, SD2.x ([unCLIP](https://comfyanonymous.github.io/ComfyUI_examples/unclip/))
70
- - [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [SDXL Turbo](https://comfyanonymous.github.io/ComfyUI_examples/sdturbo/)
71
- - [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/)
72
- - [SD3 and SD3.5](https://comfyanonymous.github.io/ComfyUI_examples/sd3/)
73
- - Pixart Alpha and Sigma
74
- - [AuraFlow](https://comfyanonymous.github.io/ComfyUI_examples/aura_flow/)
75
- - [HunyuanDiT](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_dit/)
76
- - [Flux](https://comfyanonymous.github.io/ComfyUI_examples/flux/)
77
- - [Lumina Image 2.0](https://comfyanonymous.github.io/ComfyUI_examples/lumina2/)
78
- - [HiDream](https://comfyanonymous.github.io/ComfyUI_examples/hidream/)
79
- - [Qwen Image](https://comfyanonymous.github.io/ComfyUI_examples/qwen_image/)
80
- - [Hunyuan Image 2.1](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_image/)
81
- - Image Editing Models
82
- - [Omnigen 2](https://comfyanonymous.github.io/ComfyUI_examples/omnigen/)
83
- - [Flux Kontext](https://comfyanonymous.github.io/ComfyUI_examples/flux/#flux-kontext-image-editing-model)
84
- - [HiDream E1.1](https://comfyanonymous.github.io/ComfyUI_examples/hidream/#hidream-e11)
85
- - [Qwen Image Edit](https://comfyanonymous.github.io/ComfyUI_examples/qwen_image/#edit-model)
86
- - Video Models
87
- - [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/)
88
- - [Mochi](https://comfyanonymous.github.io/ComfyUI_examples/mochi/)
89
- - [LTX-Video](https://comfyanonymous.github.io/ComfyUI_examples/ltxv/)
90
- - [Hunyuan Video](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_video/)
91
- - [Wan 2.1](https://comfyanonymous.github.io/ComfyUI_examples/wan/)
92
- - [Wan 2.2](https://comfyanonymous.github.io/ComfyUI_examples/wan22/)
93
- - Audio Models
94
- - [Stable Audio](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
95
- - [ACE Step](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
96
- - 3D Models
97
- - [Hunyuan3D 2.0](https://docs.comfy.org/tutorials/3d/hunyuan3D-2)
98
- - Asynchronous Queue system
99
- - Many optimizations: Only re-executes the parts of the workflow that changes between executions.
100
- - Smart memory management: can automatically run large models on GPUs with as low as 1GB vram with smart offloading.
101
- - Works even if you don't have a GPU with: ```--cpu``` (slow)
102
- - Can load ckpt and safetensors: All in one checkpoints or standalone diffusion models, VAEs and CLIP models.
103
- - Safe loading of ckpt, pt, pth, etc.. files.
104
- - Embeddings/Textual inversion
105
- - [Loras (regular, locon and loha)](https://comfyanonymous.github.io/ComfyUI_examples/lora/)
106
- - [Hypernetworks](https://comfyanonymous.github.io/ComfyUI_examples/hypernetworks/)
107
- - Loading full workflows (with seeds) from generated PNG, WebP and FLAC files.
108
- - Saving/Loading workflows as Json files.
109
- - Nodes interface can be used to create complex workflows like one for [Hires fix](https://comfyanonymous.github.io/ComfyUI_examples/2_pass_txt2img/) or much more advanced ones.
110
- - [Area Composition](https://comfyanonymous.github.io/ComfyUI_examples/area_composition/)
111
- - [Inpainting](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/) with both regular and inpainting models.
112
- - [ControlNet and T2I-Adapter](https://comfyanonymous.github.io/ComfyUI_examples/controlnet/)
113
- - [Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)](https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/)
114
- - [GLIGEN](https://comfyanonymous.github.io/ComfyUI_examples/gligen/)
115
- - [Model Merging](https://comfyanonymous.github.io/ComfyUI_examples/model_merging/)
116
- - [LCM models and Loras](https://comfyanonymous.github.io/ComfyUI_examples/lcm/)
117
- - Latent previews with [TAESD](#how-to-show-high-quality-previews)
118
- - Works fully offline: core will never download anything unless you want to.
119
- - Optional API nodes to use paid models from external providers through the online [Comfy API](https://docs.comfy.org/tutorials/api-nodes/overview).
120
- - [Config file](extra_model_paths.yaml.example) to set the search paths for models.
121
-
122
- Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
123
-
124
- ## Release Process
125
-
126
- ComfyUI follows a weekly release cycle targeting Friday but this regularly changes because of model releases or large changes to the codebase. There are three interconnected repositories:
127
-
128
- 1. **[ComfyUI Core](https://github.com/comfyanonymous/ComfyUI)**
129
- - Releases a new stable version (e.g., v0.7.0)
130
- - Serves as the foundation for the desktop release
131
-
132
- 2. **[ComfyUI Desktop](https://github.com/Comfy-Org/desktop)**
133
- - Builds a new release using the latest stable core version
134
-
135
- 3. **[ComfyUI Frontend](https://github.com/Comfy-Org/ComfyUI_frontend)**
136
- - Weekly frontend updates are merged into the core repository
137
- - Features are frozen for the upcoming core release
138
- - Development continues for the next release cycle
139
-
140
- ## Shortcuts
141
-
142
- | Keybind | Explanation |
143
- |------------------------------------|--------------------------------------------------------------------------------------------------------------------|
144
- | `Ctrl` + `Enter` | Queue up current graph for generation |
145
- | `Ctrl` + `Shift` + `Enter` | Queue up current graph as first for generation |
146
- | `Ctrl` + `Alt` + `Enter` | Cancel current generation |
147
- | `Ctrl` + `Z`/`Ctrl` + `Y` | Undo/Redo |
148
- | `Ctrl` + `S` | Save workflow |
149
- | `Ctrl` + `O` | Load workflow |
150
- | `Ctrl` + `A` | Select all nodes |
151
- | `Alt `+ `C` | Collapse/uncollapse selected nodes |
152
- | `Ctrl` + `M` | Mute/unmute selected nodes |
153
- | `Ctrl` + `B` | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
154
- | `Delete`/`Backspace` | Delete selected nodes |
155
- | `Ctrl` + `Backspace` | Delete the current graph |
156
- | `Space` | Move the canvas around when held and moving the cursor |
157
- | `Ctrl`/`Shift` + `Click` | Add clicked node to selection |
158
- | `Ctrl` + `C`/`Ctrl` + `V` | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
159
- | `Ctrl` + `C`/`Ctrl` + `Shift` + `V` | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
160
- | `Shift` + `Drag` | Move multiple selected nodes at the same time |
161
- | `Ctrl` + `D` | Load default graph |
162
- | `Alt` + `+` | Canvas Zoom in |
163
- | `Alt` + `-` | Canvas Zoom out |
164
- | `Ctrl` + `Shift` + LMB + Vertical drag | Canvas Zoom in/out |
165
- | `P` | Pin/Unpin selected nodes |
166
- | `Ctrl` + `G` | Group selected nodes |
167
- | `Q` | Toggle visibility of the queue |
168
- | `H` | Toggle visibility of history |
169
- | `R` | Refresh graph |
170
- | `F` | Show/Hide menu |
171
- | `.` | Fit view to selection (Whole graph when nothing is selected) |
172
- | Double-Click LMB | Open node quick search palette |
173
- | `Shift` + Drag | Move multiple wires at once |
174
- | `Ctrl` + `Alt` + LMB | Disconnect all wires from clicked slot |
175
-
176
- `Ctrl` can also be replaced with `Cmd` instead for macOS users
177
-
178
- # Installing
179
-
180
- ## Windows Portable
181
-
182
- There is a portable standalone build for Windows that should work for running on Nvidia GPUs or for running on your CPU only on the [releases page](https://github.com/comfyanonymous/ComfyUI/releases).
183
-
184
- ### [Direct link to download](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z)
185
-
186
- Simply download, extract with [7-Zip](https://7-zip.org) and run. Make sure you put your Stable Diffusion checkpoints/models (the huge ckpt/safetensors files) in: ComfyUI\models\checkpoints
187
-
188
- If you have trouble extracting it, right click the file -> properties -> unblock
189
-
190
- #### How do I share models between another UI and ComfyUI?
191
-
192
- See the [Config file](extra_model_paths.yaml.example) to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.
193
-
194
-
195
- ## [comfy-cli](https://docs.comfy.org/comfy-cli/getting-started)
196
-
197
- You can install and start ComfyUI using comfy-cli:
198
- ```bash
199
- pip install comfy-cli
200
- comfy install
201
- ```
202
-
203
- ## Manual Install (Windows, Linux)
204
-
205
- Python 3.13 is very well supported. If you have trouble with some custom node dependencies you can try 3.12
206
-
207
- Git clone this repo.
208
-
209
- Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
210
-
211
- Put your VAE in: models/vae
212
-
213
-
214
- ### AMD GPUs (Linux only)
215
- 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:
216
-
217
- ```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4```
218
-
219
- This is the command to install the nightly with ROCm 6.4 which might have some performance improvements:
220
-
221
- ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.4```
222
-
223
- ### Intel GPUs (Windows and Linux)
224
-
225
- (Option 1) Intel Arc GPU users can install native PyTorch with torch.xpu support using pip. More information can be found [here](https://pytorch.org/docs/main/notes/get_start_xpu.html)
226
-
227
- 1. To install PyTorch xpu, use the following command:
228
-
229
- ```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu```
230
-
231
- This is the command to install the Pytorch xpu nightly which might have some performance improvements:
232
-
233
- ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu```
234
-
235
- (Option 2) Alternatively, Intel GPUs supported by Intel Extension for PyTorch (IPEX) can leverage IPEX for improved performance.
236
-
237
- 1. visit [Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu) for more information.
238
-
239
- ### NVIDIA
240
-
241
- Nvidia users should install stable pytorch using this command:
242
-
243
- ```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu129```
244
-
245
- This is the command to install pytorch nightly instead which might have performance improvements.
246
-
247
- ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129```
248
-
249
- #### Troubleshooting
250
-
251
- If you get the "Torch not compiled with CUDA enabled" error, uninstall torch with:
252
-
253
- ```pip uninstall torch```
254
-
255
- And install it again with the command above.
256
-
257
- ### Dependencies
258
-
259
- Install the dependencies by opening your terminal inside the ComfyUI folder and:
260
-
261
- ```pip install -r requirements.txt```
262
-
263
- After this you should have everything installed and can proceed to running ComfyUI.
264
-
265
- ### Others:
266
-
267
- #### Apple Mac silicon
268
-
269
- You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
270
-
271
- 1. Install pytorch nightly. For instructions, read the [Accelerated PyTorch training on Mac](https://developer.apple.com/metal/pytorch/) Apple Developer guide (make sure to install the latest pytorch nightly).
272
- 1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux.
273
- 1. Install the ComfyUI [dependencies](#dependencies). If you have another Stable Diffusion UI [you might be able to reuse the dependencies](#i-already-have-another-ui-for-stable-diffusion-installed-do-i-really-have-to-install-all-of-these-dependencies).
274
- 1. Launch ComfyUI by running `python main.py`
275
-
276
- > **Note**: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in [ComfyUI manual installation](#manual-install-windows-linux).
277
-
278
- #### DirectML (AMD Cards on Windows)
279
-
280
- This is very badly supported and is not recommended. There are some unofficial builds of pytorch ROCm on windows that exist that will give you a much better experience than this. This readme will be updated once official pytorch ROCm builds for windows come out.
281
-
282
- ```pip install torch-directml``` Then you can launch ComfyUI with: ```python main.py --directml```
283
-
284
- #### Ascend NPUs
285
-
286
- For models compatible with Ascend Extension for PyTorch (torch_npu). To get started, ensure your environment meets the prerequisites outlined on the [installation](https://ascend.github.io/docs/sources/ascend/quick_install.html) page. Here's a step-by-step guide tailored to your platform and installation method:
287
-
288
- 1. Begin by installing the recommended or newer kernel version for Linux as specified in the Installation page of torch-npu, if necessary.
289
- 2. Proceed with the installation of Ascend Basekit, which includes the driver, firmware, and CANN, following the instructions provided for your specific platform.
290
- 3. Next, install the necessary packages for torch-npu by adhering to the platform-specific instructions on the [Installation](https://ascend.github.io/docs/sources/pytorch/install.html#pytorch) page.
291
- 4. Finally, adhere to the [ComfyUI manual installation](#manual-install-windows-linux) guide for Linux. Once all components are installed, you can run ComfyUI as described earlier.
292
-
293
- #### Cambricon MLUs
294
-
295
- For models compatible with Cambricon Extension for PyTorch (torch_mlu). Here's a step-by-step guide tailored to your platform and installation method:
296
-
297
- 1. Install the Cambricon CNToolkit by adhering to the platform-specific instructions on the [Installation](https://www.cambricon.com/docs/sdk_1.15.0/cntoolkit_3.7.2/cntoolkit_install_3.7.2/index.html)
298
- 2. Next, install the PyTorch(torch_mlu) following the instructions on the [Installation](https://www.cambricon.com/docs/sdk_1.15.0/cambricon_pytorch_1.17.0/user_guide_1.9/index.html)
299
- 3. Launch ComfyUI by running `python main.py`
300
-
301
- #### Iluvatar Corex
302
-
303
- For models compatible with Iluvatar Extension for PyTorch. Here's a step-by-step guide tailored to your platform and installation method:
304
-
305
- 1. Install the Iluvatar Corex Toolkit by adhering to the platform-specific instructions on the [Installation](https://support.iluvatar.com/#/DocumentCentre?id=1&nameCenter=2&productId=520117912052801536)
306
- 2. Launch ComfyUI by running `python main.py`
307
-
308
- # Running
309
-
310
- ```python main.py```
311
-
312
- ### For AMD cards not officially supported by ROCm
313
-
314
- Try running it with this command if you have issues:
315
-
316
- For 6700, 6600 and maybe other RDNA2 or older: ```HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py```
317
-
318
- For AMD 7600 and maybe other RDNA3 cards: ```HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py```
319
-
320
- ### AMD ROCm Tips
321
-
322
- You can enable experimental memory efficient attention on recent pytorch in ComfyUI on some AMD GPUs using this command, it should already be enabled by default on RDNA3. If this improves speed for you on latest pytorch on your GPU please report it so that I can enable it by default.
323
-
324
- ```TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 python main.py --use-pytorch-cross-attention```
325
-
326
- You can also try setting this env variable `PYTORCH_TUNABLEOP_ENABLED=1` which might speed things up at the cost of a very slow initial run.
327
-
328
- # Notes
329
-
330
- Only parts of the graph that have an output with all the correct inputs will be executed.
331
-
332
- Only parts of the graph that change from each execution to the next will be executed, if you submit the same graph twice only the first will be executed. If you change the last part of the graph only the part you changed and the part that depends on it will be executed.
333
-
334
- Dragging a generated png on the webpage or loading one will give you the full workflow including seeds that were used to create it.
335
-
336
- You can use () to change emphasis of a word or phrase like: (good code:1.2) or (bad code:0.8). The default emphasis for () is 1.1. To use () characters in your actual prompt escape them like \\( or \\).
337
-
338
- You can use {day|night}, for wildcard/dynamic prompts. With this syntax "{wild|card|test}" will be randomly replaced by either "wild", "card" or "test" by the frontend every time you queue the prompt. To use {} characters in your actual prompt escape them like: \\{ or \\}.
339
-
340
- Dynamic prompts also support C-style comments, like `// comment` or `/* comment */`.
341
-
342
- To use a textual inversion concepts/embeddings in a text prompt put them in the models/embeddings directory and use them in the CLIPTextEncode node like this (you can omit the .pt extension):
343
-
344
- ```embedding:embedding_filename.pt```
345
-
346
-
347
- ## How to show high-quality previews?
348
-
349
- Use ```--preview-method auto``` to enable previews.
350
-
351
- 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.
352
-
353
- ## How to use TLS/SSL?
354
- 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"`
355
-
356
- Use `--tls-keyfile key.pem --tls-certfile cert.pem` to enable TLS/SSL, the app will now be accessible with `https://...` instead of `http://...`.
357
-
358
- > Note: Windows users can use [alexisrolland/docker-openssl](https://github.com/alexisrolland/docker-openssl) or one of the [3rd party binary distributions](https://wiki.openssl.org/index.php/Binaries) to run the command example above.
359
- <br/><br/>If you use a container, note that the volume mount `-v` can be a relative path so `... -v ".\:/openssl-certs" ...` would create the key & cert files in the current directory of your command prompt or powershell terminal.
360
-
361
- ## Support and dev channel
362
-
363
- [Discord](https://comfy.org/discord): Try the #help or #feedback channels.
364
-
365
- [Matrix space: #comfyui_space:matrix.org](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) (it's like discord but open source).
366
-
367
- See also: [https://www.comfy.org/](https://www.comfy.org/)
368
-
369
- ## Frontend Development
370
-
371
- 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.
372
-
373
- ### Reporting Issues and Requesting Features
374
-
375
- 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.
376
-
377
- ### Using the Latest Frontend
378
-
379
- The new frontend is now the default for ComfyUI. However, please note:
380
-
381
- 1. The frontend in the main ComfyUI repository is updated fortnightly.
382
- 2. Daily releases are available in the separate frontend repository.
383
-
384
- To use the most up-to-date frontend version:
385
-
386
- 1. For the latest daily release, launch ComfyUI with this command line argument:
387
-
388
- ```
389
- --front-end-version Comfy-Org/ComfyUI_frontend@latest
390
- ```
391
-
392
- 2. For a specific version, replace `latest` with the desired version number:
393
-
394
- ```
395
- --front-end-version Comfy-Org/[email protected]
396
- ```
397
-
398
- This approach allows you to easily switch between the stable fortnightly release and the cutting-edge daily updates, or even specific versions for testing purposes.
399
-
400
- ### Accessing the Legacy Frontend
401
-
402
- If you need to use the legacy frontend for any reason, you can access it using the following command line argument:
403
-
404
- ```
405
- --front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest
406
- ```
407
-
408
- This will use a snapshot of the legacy frontend preserved in the [ComfyUI Legacy Frontend repository](https://github.com/Comfy-Org/ComfyUI_legacy_frontend).
409
-
410
- # QA
411
-
412
- ### Which GPU should I buy for this?
413
-
414
- [See this page for some recommendations](https://github.com/comfyanonymous/ComfyUI/wiki/Which-GPU-should-I-buy-for-ComfyUI)
 
1
+ ---
2
+ title: ComfyUI Reactor Video Face Swap HYPERSWAP (CPU)
3
+ emoji: 🎥🅥🅗🅢
4
+ colorFrom: green
5
+ colorTo: purple
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: false
9
+ license: mit
10
+ short_description: CPU = UNLIMIT (DUPLICATE this Space)!
11
+ ---
12
+ <div align="center">
13
+
14
+ # ComfyUI
15
+ **The most powerful and modular visual AI engine and application.**
16
+
17
+
18
+ [![Website][website-shield]][website-url]
19
+ [![Dynamic JSON Badge][discord-shield]][discord-url]
20
+ [![Twitter][twitter-shield]][twitter-url]
21
+ [![Matrix][matrix-shield]][matrix-url]
22
+ <br>
23
+ [![][github-release-shield]][github-release-link]
24
+ [![][github-release-date-shield]][github-release-link]
25
+ [![][github-downloads-shield]][github-downloads-link]
26
+ [![][github-downloads-latest-shield]][github-downloads-link]
27
+
28
+ [matrix-shield]: https://img.shields.io/badge/Matrix-000000?style=flat&logo=matrix&logoColor=white
29
+ [matrix-url]: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org
30
+ [website-shield]: https://img.shields.io/badge/ComfyOrg-4285F4?style=flat
31
+ [website-url]: https://www.comfy.org/
32
+ <!-- Workaround to display total user from https://github.com/badges/shields/issues/4500#issuecomment-2060079995 -->
33
+ [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
34
+ [discord-url]: https://www.comfy.org/discord
35
+ [twitter-shield]: https://img.shields.io/twitter/follow/ComfyUI
36
+ [twitter-url]: https://x.com/ComfyUI
37
+
38
+ [github-release-shield]: https://img.shields.io/github/v/release/comfyanonymous/ComfyUI?style=flat&sort=semver
39
+ [github-release-link]: https://github.com/comfyanonymous/ComfyUI/releases
40
+ [github-release-date-shield]: https://img.shields.io/github/release-date/comfyanonymous/ComfyUI?style=flat
41
+ [github-downloads-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/total?style=flat
42
+ [github-downloads-latest-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/latest/total?style=flat&label=downloads%40latest
43
+ [github-downloads-link]: https://github.com/comfyanonymous/ComfyUI/releases
44
+
45
+ ![ComfyUI Screenshot](https://github.com/user-attachments/assets/7ccaf2c1-9b72-41ae-9a89-5688c94b7abe)
46
+ </div>
47
+
48
+ ComfyUI lets you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface. Available on Windows, Linux, and macOS.
49
+
50
+ ## Get Started
51
+
52
+ #### [Desktop Application](https://www.comfy.org/download)
53
+ - The easiest way to get started.
54
+ - Available on Windows & macOS.
55
+
56
+ #### [Windows Portable Package](#installing)
57
+ - Get the latest commits and completely portable.
58
+ - Available on Windows.
59
+
60
+ #### [Manual Install](#manual-install-windows-linux)
61
+ Supports all operating systems and GPU types (NVIDIA, AMD, Intel, Apple Silicon, Ascend).
62
+
63
+ ## [Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
64
+ See what ComfyUI can do with the [example workflows](https://comfyanonymous.github.io/ComfyUI_examples/).
65
+
66
+ ## Features
67
+ - Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
68
+ - Image Models
69
+ - SD1.x, SD2.x ([unCLIP](https://comfyanonymous.github.io/ComfyUI_examples/unclip/))
70
+ - [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [SDXL Turbo](https://comfyanonymous.github.io/ComfyUI_examples/sdturbo/)
71
+ - [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/)
72
+ - [SD3 and SD3.5](https://comfyanonymous.github.io/ComfyUI_examples/sd3/)
73
+ - Pixart Alpha and Sigma
74
+ - [AuraFlow](https://comfyanonymous.github.io/ComfyUI_examples/aura_flow/)
75
+ - [HunyuanDiT](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_dit/)
76
+ - [Flux](https://comfyanonymous.github.io/ComfyUI_examples/flux/)
77
+ - [Lumina Image 2.0](https://comfyanonymous.github.io/ComfyUI_examples/lumina2/)
78
+ - [HiDream](https://comfyanonymous.github.io/ComfyUI_examples/hidream/)
79
+ - [Qwen Image](https://comfyanonymous.github.io/ComfyUI_examples/qwen_image/)
80
+ - [Hunyuan Image 2.1](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_image/)
81
+ - Image Editing Models
82
+ - [Omnigen 2](https://comfyanonymous.github.io/ComfyUI_examples/omnigen/)
83
+ - [Flux Kontext](https://comfyanonymous.github.io/ComfyUI_examples/flux/#flux-kontext-image-editing-model)
84
+ - [HiDream E1.1](https://comfyanonymous.github.io/ComfyUI_examples/hidream/#hidream-e11)
85
+ - [Qwen Image Edit](https://comfyanonymous.github.io/ComfyUI_examples/qwen_image/#edit-model)
86
+ - Video Models
87
+ - [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/)
88
+ - [Mochi](https://comfyanonymous.github.io/ComfyUI_examples/mochi/)
89
+ - [LTX-Video](https://comfyanonymous.github.io/ComfyUI_examples/ltxv/)
90
+ - [Hunyuan Video](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_video/)
91
+ - [Wan 2.1](https://comfyanonymous.github.io/ComfyUI_examples/wan/)
92
+ - [Wan 2.2](https://comfyanonymous.github.io/ComfyUI_examples/wan22/)
93
+ - Audio Models
94
+ - [Stable Audio](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
95
+ - [ACE Step](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
96
+ - 3D Models
97
+ - [Hunyuan3D 2.0](https://docs.comfy.org/tutorials/3d/hunyuan3D-2)
98
+ - Asynchronous Queue system
99
+ - Many optimizations: Only re-executes the parts of the workflow that changes between executions.
100
+ - Smart memory management: can automatically run large models on GPUs with as low as 1GB vram with smart offloading.
101
+ - Works even if you don't have a GPU with: ```--cpu``` (slow)
102
+ - Can load ckpt and safetensors: All in one checkpoints or standalone diffusion models, VAEs and CLIP models.
103
+ - Safe loading of ckpt, pt, pth, etc.. files.
104
+ - Embeddings/Textual inversion
105
+ - [Loras (regular, locon and loha)](https://comfyanonymous.github.io/ComfyUI_examples/lora/)
106
+ - [Hypernetworks](https://comfyanonymous.github.io/ComfyUI_examples/hypernetworks/)
107
+ - Loading full workflows (with seeds) from generated PNG, WebP and FLAC files.
108
+ - Saving/Loading workflows as Json files.
109
+ - Nodes interface can be used to create complex workflows like one for [Hires fix](https://comfyanonymous.github.io/ComfyUI_examples/2_pass_txt2img/) or much more advanced ones.
110
+ - [Area Composition](https://comfyanonymous.github.io/ComfyUI_examples/area_composition/)
111
+ - [Inpainting](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/) with both regular and inpainting models.
112
+ - [ControlNet and T2I-Adapter](https://comfyanonymous.github.io/ComfyUI_examples/controlnet/)
113
+ - [Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)](https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/)
114
+ - [GLIGEN](https://comfyanonymous.github.io/ComfyUI_examples/gligen/)
115
+ - [Model Merging](https://comfyanonymous.github.io/ComfyUI_examples/model_merging/)
116
+ - [LCM models and Loras](https://comfyanonymous.github.io/ComfyUI_examples/lcm/)
117
+ - Latent previews with [TAESD](#how-to-show-high-quality-previews)
118
+ - Works fully offline: core will never download anything unless you want to.
119
+ - Optional API nodes to use paid models from external providers through the online [Comfy API](https://docs.comfy.org/tutorials/api-nodes/overview).
120
+ - [Config file](extra_model_paths.yaml.example) to set the search paths for models.
121
+
122
+ Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
123
+
124
+ ## Release Process
125
+
126
+ ComfyUI follows a weekly release cycle targeting Friday but this regularly changes because of model releases or large changes to the codebase. There are three interconnected repositories:
127
+
128
+ 1. **[ComfyUI Core](https://github.com/comfyanonymous/ComfyUI)**
129
+ - Releases a new stable version (e.g., v0.7.0)
130
+ - Serves as the foundation for the desktop release
131
+
132
+ 2. **[ComfyUI Desktop](https://github.com/Comfy-Org/desktop)**
133
+ - Builds a new release using the latest stable core version
134
+
135
+ 3. **[ComfyUI Frontend](https://github.com/Comfy-Org/ComfyUI_frontend)**
136
+ - Weekly frontend updates are merged into the core repository
137
+ - Features are frozen for the upcoming core release
138
+ - Development continues for the next release cycle
139
+
140
+ ## Shortcuts
141
+
142
+ | Keybind | Explanation |
143
+ |------------------------------------|--------------------------------------------------------------------------------------------------------------------|
144
+ | `Ctrl` + `Enter` | Queue up current graph for generation |
145
+ | `Ctrl` + `Shift` + `Enter` | Queue up current graph as first for generation |
146
+ | `Ctrl` + `Alt` + `Enter` | Cancel current generation |
147
+ | `Ctrl` + `Z`/`Ctrl` + `Y` | Undo/Redo |
148
+ | `Ctrl` + `S` | Save workflow |
149
+ | `Ctrl` + `O` | Load workflow |
150
+ | `Ctrl` + `A` | Select all nodes |
151
+ | `Alt `+ `C` | Collapse/uncollapse selected nodes |
152
+ | `Ctrl` + `M` | Mute/unmute selected nodes |
153
+ | `Ctrl` + `B` | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
154
+ | `Delete`/`Backspace` | Delete selected nodes |
155
+ | `Ctrl` + `Backspace` | Delete the current graph |
156
+ | `Space` | Move the canvas around when held and moving the cursor |
157
+ | `Ctrl`/`Shift` + `Click` | Add clicked node to selection |
158
+ | `Ctrl` + `C`/`Ctrl` + `V` | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
159
+ | `Ctrl` + `C`/`Ctrl` + `Shift` + `V` | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
160
+ | `Shift` + `Drag` | Move multiple selected nodes at the same time |
161
+ | `Ctrl` + `D` | Load default graph |
162
+ | `Alt` + `+` | Canvas Zoom in |
163
+ | `Alt` + `-` | Canvas Zoom out |
164
+ | `Ctrl` + `Shift` + LMB + Vertical drag | Canvas Zoom in/out |
165
+ | `P` | Pin/Unpin selected nodes |
166
+ | `Ctrl` + `G` | Group selected nodes |
167
+ | `Q` | Toggle visibility of the queue |
168
+ | `H` | Toggle visibility of history |
169
+ | `R` | Refresh graph |
170
+ | `F` | Show/Hide menu |
171
+ | `.` | Fit view to selection (Whole graph when nothing is selected) |
172
+ | Double-Click LMB | Open node quick search palette |
173
+ | `Shift` + Drag | Move multiple wires at once |
174
+ | `Ctrl` + `Alt` + LMB | Disconnect all wires from clicked slot |
175
+
176
+ `Ctrl` can also be replaced with `Cmd` instead for macOS users
177
+
178
+ # Installing
179
+
180
+ ## Windows Portable
181
+
182
+ There is a portable standalone build for Windows that should work for running on Nvidia GPUs or for running on your CPU only on the [releases page](https://github.com/comfyanonymous/ComfyUI/releases).
183
+
184
+ ### [Direct link to download](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z)
185
+
186
+ Simply download, extract with [7-Zip](https://7-zip.org) and run. Make sure you put your Stable Diffusion checkpoints/models (the huge ckpt/safetensors files) in: ComfyUI\models\checkpoints
187
+
188
+ If you have trouble extracting it, right click the file -> properties -> unblock
189
+
190
+ #### How do I share models between another UI and ComfyUI?
191
+
192
+ See the [Config file](extra_model_paths.yaml.example) to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.
193
+
194
+
195
+ ## [comfy-cli](https://docs.comfy.org/comfy-cli/getting-started)
196
+
197
+ You can install and start ComfyUI using comfy-cli:
198
+ ```bash
199
+ pip install comfy-cli
200
+ comfy install
201
+ ```
202
+
203
+ ## Manual Install (Windows, Linux)
204
+
205
+ Python 3.13 is very well supported. If you have trouble with some custom node dependencies you can try 3.12
206
+
207
+ Git clone this repo.
208
+
209
+ Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
210
+
211
+ Put your VAE in: models/vae
212
+
213
+
214
+ ### AMD GPUs (Linux only)
215
+ 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:
216
+
217
+ ```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4```
218
+
219
+ This is the command to install the nightly with ROCm 6.4 which might have some performance improvements:
220
+
221
+ ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.4```
222
+
223
+ ### Intel GPUs (Windows and Linux)
224
+
225
+ (Option 1) Intel Arc GPU users can install native PyTorch with torch.xpu support using pip. More information can be found [here](https://pytorch.org/docs/main/notes/get_start_xpu.html)
226
+
227
+ 1. To install PyTorch xpu, use the following command:
228
+
229
+ ```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu```
230
+
231
+ This is the command to install the Pytorch xpu nightly which might have some performance improvements:
232
+
233
+ ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu```
234
+
235
+ (Option 2) Alternatively, Intel GPUs supported by Intel Extension for PyTorch (IPEX) can leverage IPEX for improved performance.
236
+
237
+ 1. visit [Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu) for more information.
238
+
239
+ ### NVIDIA
240
+
241
+ Nvidia users should install stable pytorch using this command:
242
+
243
+ ```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu129```
244
+
245
+ This is the command to install pytorch nightly instead which might have performance improvements.
246
+
247
+ ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129```
248
+
249
+ #### Troubleshooting
250
+
251
+ If you get the "Torch not compiled with CUDA enabled" error, uninstall torch with:
252
+
253
+ ```pip uninstall torch```
254
+
255
+ And install it again with the command above.
256
+
257
+ ### Dependencies
258
+
259
+ Install the dependencies by opening your terminal inside the ComfyUI folder and:
260
+
261
+ ```pip install -r requirements.txt```
262
+
263
+ After this you should have everything installed and can proceed to running ComfyUI.
264
+
265
+ ### Others:
266
+
267
+ #### Apple Mac silicon
268
+
269
+ You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
270
+
271
+ 1. Install pytorch nightly. For instructions, read the [Accelerated PyTorch training on Mac](https://developer.apple.com/metal/pytorch/) Apple Developer guide (make sure to install the latest pytorch nightly).
272
+ 1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux.
273
+ 1. Install the ComfyUI [dependencies](#dependencies). If you have another Stable Diffusion UI [you might be able to reuse the dependencies](#i-already-have-another-ui-for-stable-diffusion-installed-do-i-really-have-to-install-all-of-these-dependencies).
274
+ 1. Launch ComfyUI by running `python main.py`
275
+
276
+ > **Note**: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in [ComfyUI manual installation](#manual-install-windows-linux).
277
+
278
+ #### DirectML (AMD Cards on Windows)
279
+
280
+ This is very badly supported and is not recommended. There are some unofficial builds of pytorch ROCm on windows that exist that will give you a much better experience than this. This readme will be updated once official pytorch ROCm builds for windows come out.
281
+
282
+ ```pip install torch-directml``` Then you can launch ComfyUI with: ```python main.py --directml```
283
+
284
+ #### Ascend NPUs
285
+
286
+ For models compatible with Ascend Extension for PyTorch (torch_npu). To get started, ensure your environment meets the prerequisites outlined on the [installation](https://ascend.github.io/docs/sources/ascend/quick_install.html) page. Here's a step-by-step guide tailored to your platform and installation method:
287
+
288
+ 1. Begin by installing the recommended or newer kernel version for Linux as specified in the Installation page of torch-npu, if necessary.
289
+ 2. Proceed with the installation of Ascend Basekit, which includes the driver, firmware, and CANN, following the instructions provided for your specific platform.
290
+ 3. Next, install the necessary packages for torch-npu by adhering to the platform-specific instructions on the [Installation](https://ascend.github.io/docs/sources/pytorch/install.html#pytorch) page.
291
+ 4. Finally, adhere to the [ComfyUI manual installation](#manual-install-windows-linux) guide for Linux. Once all components are installed, you can run ComfyUI as described earlier.
292
+
293
+ #### Cambricon MLUs
294
+
295
+ For models compatible with Cambricon Extension for PyTorch (torch_mlu). Here's a step-by-step guide tailored to your platform and installation method:
296
+
297
+ 1. Install the Cambricon CNToolkit by adhering to the platform-specific instructions on the [Installation](https://www.cambricon.com/docs/sdk_1.15.0/cntoolkit_3.7.2/cntoolkit_install_3.7.2/index.html)
298
+ 2. Next, install the PyTorch(torch_mlu) following the instructions on the [Installation](https://www.cambricon.com/docs/sdk_1.15.0/cambricon_pytorch_1.17.0/user_guide_1.9/index.html)
299
+ 3. Launch ComfyUI by running `python main.py`
300
+
301
+ #### Iluvatar Corex
302
+
303
+ For models compatible with Iluvatar Extension for PyTorch. Here's a step-by-step guide tailored to your platform and installation method:
304
+
305
+ 1. Install the Iluvatar Corex Toolkit by adhering to the platform-specific instructions on the [Installation](https://support.iluvatar.com/#/DocumentCentre?id=1&nameCenter=2&productId=520117912052801536)
306
+ 2. Launch ComfyUI by running `python main.py`
307
+
308
+ # Running
309
+
310
+ ```python main.py```
311
+
312
+ ### For AMD cards not officially supported by ROCm
313
+
314
+ Try running it with this command if you have issues:
315
+
316
+ For 6700, 6600 and maybe other RDNA2 or older: ```HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py```
317
+
318
+ For AMD 7600 and maybe other RDNA3 cards: ```HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py```
319
+
320
+ ### AMD ROCm Tips
321
+
322
+ You can enable experimental memory efficient attention on recent pytorch in ComfyUI on some AMD GPUs using this command, it should already be enabled by default on RDNA3. If this improves speed for you on latest pytorch on your GPU please report it so that I can enable it by default.
323
+
324
+ ```TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 python main.py --use-pytorch-cross-attention```
325
+
326
+ You can also try setting this env variable `PYTORCH_TUNABLEOP_ENABLED=1` which might speed things up at the cost of a very slow initial run.
327
+
328
+ # Notes
329
+
330
+ Only parts of the graph that have an output with all the correct inputs will be executed.
331
+
332
+ Only parts of the graph that change from each execution to the next will be executed, if you submit the same graph twice only the first will be executed. If you change the last part of the graph only the part you changed and the part that depends on it will be executed.
333
+
334
+ Dragging a generated png on the webpage or loading one will give you the full workflow including seeds that were used to create it.
335
+
336
+ You can use () to change emphasis of a word or phrase like: (good code:1.2) or (bad code:0.8). The default emphasis for () is 1.1. To use () characters in your actual prompt escape them like \\( or \\).
337
+
338
+ You can use {day|night}, for wildcard/dynamic prompts. With this syntax "{wild|card|test}" will be randomly replaced by either "wild", "card" or "test" by the frontend every time you queue the prompt. To use {} characters in your actual prompt escape them like: \\{ or \\}.
339
+
340
+ Dynamic prompts also support C-style comments, like `// comment` or `/* comment */`.
341
+
342
+ To use a textual inversion concepts/embeddings in a text prompt put them in the models/embeddings directory and use them in the CLIPTextEncode node like this (you can omit the .pt extension):
343
+
344
+ ```embedding:embedding_filename.pt```
345
+
346
+
347
+ ## How to show high-quality previews?
348
+
349
+ Use ```--preview-method auto``` to enable previews.
350
+
351
+ 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.
352
+
353
+ ## How to use TLS/SSL?
354
+ 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"`
355
+
356
+ Use `--tls-keyfile key.pem --tls-certfile cert.pem` to enable TLS/SSL, the app will now be accessible with `https://...` instead of `http://...`.
357
+
358
+ > Note: Windows users can use [alexisrolland/docker-openssl](https://github.com/alexisrolland/docker-openssl) or one of the [3rd party binary distributions](https://wiki.openssl.org/index.php/Binaries) to run the command example above.
359
+ <br/><br/>If you use a container, note that the volume mount `-v` can be a relative path so `... -v ".\:/openssl-certs" ...` would create the key & cert files in the current directory of your command prompt or powershell terminal.
360
+
361
+ ## Support and dev channel
362
+
363
+ [Discord](https://comfy.org/discord): Try the #help or #feedback channels.
364
+
365
+ [Matrix space: #comfyui_space:matrix.org](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) (it's like discord but open source).
366
+
367
+ See also: [https://www.comfy.org/](https://www.comfy.org/)
368
+
369
+ ## Frontend Development
370
+
371
+ 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.
372
+
373
+ ### Reporting Issues and Requesting Features
374
+
375
+ 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.
376
+
377
+ ### Using the Latest Frontend
378
+
379
+ The new frontend is now the default for ComfyUI. However, please note:
380
+
381
+ 1. The frontend in the main ComfyUI repository is updated fortnightly.
382
+ 2. Daily releases are available in the separate frontend repository.
383
+
384
+ To use the most up-to-date frontend version:
385
+
386
+ 1. For the latest daily release, launch ComfyUI with this command line argument:
387
+
388
+ ```
389
+ --front-end-version Comfy-Org/ComfyUI_frontend@latest
390
+ ```
391
+
392
+ 2. For a specific version, replace `latest` with the desired version number:
393
+
394
+ ```
395
+ --front-end-version Comfy-Org/[email protected]
396
+ ```
397
+
398
+ This approach allows you to easily switch between the stable fortnightly release and the cutting-edge daily updates, or even specific versions for testing purposes.
399
+
400
+ ### Accessing the Legacy Frontend
401
+
402
+ If you need to use the legacy frontend for any reason, you can access it using the following command line argument:
403
+
404
+ ```
405
+ --front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest
406
+ ```
407
+
408
+ This will use a snapshot of the legacy frontend preserved in the [ComfyUI Legacy Frontend repository](https://github.com/Comfy-Org/ComfyUI_legacy_frontend).
409
+
410
+ # QA
411
+
412
+ ### Which GPU should I buy for this?
413
+
414
+ [See this page for some recommendations](https://github.com/comfyanonymous/ComfyUI/wiki/Which-GPU-should-I-buy-for-ComfyUI)
app.py CHANGED
@@ -232,14 +232,6 @@ def generate_image(source_image, input_video, input_index, input_faces_order, sw
232
 
233
  if __name__ == "__main__":
234
  with gr.Blocks() as app:
235
- # Заголовок
236
- gr.Markdown("# ComfyUI Reactor Video Face Swap Hyperswap")
237
- gr.Markdown(
238
- "ComfyUI Reactor Video Face Swap Hyperswap running directly on Gradio. - "
239
- "[How to convert your any ComfyUI workflow to Gradio]"
240
- "(https://huggingface.co/blog/run-comfyui-workflows-on-spaces)"
241
- )
242
-
243
  with gr.Row():
244
  with gr.Column():
245
  # Вложенный Row для групп
@@ -280,22 +272,27 @@ if __name__ == "__main__":
280
  output_video = gr.Video(label="Generated Video")
281
  # with gr.Accordion("Notes (click to open)", open=False):
282
  # gr.Markdown("Added text here")
 
 
 
283
  text = """
284
  ***Hyperswap_1b_256.onnx is the best (in most cases) - but model has inner bug - sometimes they produce "FAIL" swap (working, but do not do any swapping - on SOME faces. So, for stability - do test image to image face swap on one screenshot from your video first). Most stable version is Hyperswap_1a_256.onnx.
285
 
286
  ***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.
287
 
288
- ***If you forget to add "Loop_Count" or "Pingpong" options to your video - after finish you can enable this options and press "Generate" button - which leads to quickly re-save new result video (without re-generating).
289
 
290
  ***Note: "1" or "2" - 'every frame' or 'every second frame' - if you have video 60fps or 48 fps - you can choose "2" to select every 2nd frame - for two time reduce total number of frames in video (got 30 fps and 24 fps video, accordingly).
291
 
292
  ***If needed, use AdvancedLivePortrait to correct faces on video before swapping. Here is [workflow](https://openart.ai/workflows/ocelot_vibrant_0/advanced-liveportrait-for-video-as-source/hV07PExjpK3JEd6kNnkr) for ComfyUI.
293
 
294
- ***Use Avidemux - simple but powerful freeware video editor. [Download](https://www.avidemux.org/nightly/) - choose win64 v2.8.2 for Windows 10
295
 
296
  ***Use MediaInfo (freeware) to get information about video file - [Download](https://mediaarea.net/en/MediaInfo)
297
 
298
- ***Free and easy hosting for mp4 files - [https://sendvid.com/](https://sendvid.com/)
 
 
299
 
300
  """
301
  gr.Markdown(text)
 
232
 
233
  if __name__ == "__main__":
234
  with gr.Blocks() as app:
 
 
 
 
 
 
 
 
235
  with gr.Row():
236
  with gr.Column():
237
  # Вложенный Row для групп
 
272
  output_video = gr.Video(label="Generated Video")
273
  # with gr.Accordion("Notes (click to open)", open=False):
274
  # gr.Markdown("Added text here")
275
+
276
+ with gr.Row():
277
+ with gr.Column(scale=1):
278
  text = """
279
  ***Hyperswap_1b_256.onnx is the best (in most cases) - but model has inner bug - sometimes they produce "FAIL" swap (working, but do not do any swapping - on SOME faces. So, for stability - do test image to image face swap on one screenshot from your video first). Most stable version is Hyperswap_1a_256.onnx.
280
 
281
  ***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.
282
 
283
+ ***If you forget to add "Loop_Count" or "Pingpong" options to your video - after finish you can enable this options and press "Generate" button - which leads to re-save new result video (with short generation - without re-generating all face swap processing from start).
284
 
285
  ***Note: "1" or "2" - 'every frame' or 'every second frame' - if you have video 60fps or 48 fps - you can choose "2" to select every 2nd frame - for two time reduce total number of frames in video (got 30 fps and 24 fps video, accordingly).
286
 
287
  ***If needed, use AdvancedLivePortrait to correct faces on video before swapping. Here is [workflow](https://openart.ai/workflows/ocelot_vibrant_0/advanced-liveportrait-for-video-as-source/hV07PExjpK3JEd6kNnkr) for ComfyUI.
288
 
289
+ ***Use Avidemux - simple but powerful freeware video editor. [Download](https://www.avidemux.org/nightly/) - choose win64 v2.8.2 for Windows 10.
290
 
291
  ***Use MediaInfo (freeware) to get information about video file - [Download](https://mediaarea.net/en/MediaInfo)
292
 
293
+ ***Free and easy hosting for short mp4 files - [https://sendvid.com/](https://sendvid.com/)
294
+
295
+ ***"ComfyUI Reactor Video Face Swap Hyperswap running directly on Gradio. - [How to convert your any ComfyUI workflow to Gradio](https://huggingface.co/blog/run-comfyui-workflows-on-spaces)
296
 
297
  """
298
  gr.Markdown(text)