killbill007 commited on
Commit
35cdf61
1 Parent(s): 2cceda4

Upload 1398 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +67 -0
  2. ComfyUI/.ci/update_windows/update.py +146 -0
  3. ComfyUI/.ci/update_windows/update_comfyui.bat +8 -0
  4. ComfyUI/.ci/update_windows/update_comfyui_stable.bat +8 -0
  5. ComfyUI/.ci/windows_base_files/README_VERY_IMPORTANT.txt +31 -0
  6. ComfyUI/.ci/windows_base_files/run_cpu.bat +2 -0
  7. ComfyUI/.ci/windows_base_files/run_nvidia_gpu.bat +2 -0
  8. ComfyUI/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat +2 -0
  9. ComfyUI/.gitattributes +2 -0
  10. ComfyUI/.github/ISSUE_TEMPLATE/bug-report.yml +48 -0
  11. ComfyUI/.github/ISSUE_TEMPLATE/config.yml +11 -0
  12. ComfyUI/.github/ISSUE_TEMPLATE/feature-request.yml +32 -0
  13. ComfyUI/.github/ISSUE_TEMPLATE/user-support.yml +32 -0
  14. ComfyUI/.github/workflows/pullrequest-ci-run.yml +53 -0
  15. ComfyUI/.github/workflows/pylint.yml +23 -0
  16. ComfyUI/.github/workflows/stable-release.yml +104 -0
  17. ComfyUI/.github/workflows/stale-issues.yml +21 -0
  18. ComfyUI/.github/workflows/test-build.yml +31 -0
  19. ComfyUI/.github/workflows/test-ci.yml +95 -0
  20. ComfyUI/.github/workflows/test-launch.yml +45 -0
  21. ComfyUI/.github/workflows/windows_release_dependencies.yml +71 -0
  22. ComfyUI/.github/workflows/windows_release_nightly_pytorch.yml +91 -0
  23. ComfyUI/.github/workflows/windows_release_package.yml +100 -0
  24. ComfyUI/.gitignore +22 -0
  25. ComfyUI/.ipynb_checkpoints/comfyui_3001-checkpoint.log +47 -0
  26. ComfyUI/.pylintrc +3 -0
  27. ComfyUI/CODEOWNERS +1 -0
  28. ComfyUI/CONTRIBUTING.md +41 -0
  29. ComfyUI/LICENSE +674 -0
  30. ComfyUI/README.md +295 -0
  31. ComfyUI/__pycache__/cuda_malloc.cpython-310.pyc +0 -0
  32. ComfyUI/__pycache__/cuda_malloc.cpython-312.pyc +0 -0
  33. ComfyUI/__pycache__/execution.cpython-310.pyc +0 -0
  34. ComfyUI/__pycache__/execution.cpython-312.pyc +0 -0
  35. ComfyUI/__pycache__/folder_paths.cpython-310.pyc +0 -0
  36. ComfyUI/__pycache__/folder_paths.cpython-312.pyc +0 -0
  37. ComfyUI/__pycache__/latent_preview.cpython-310.pyc +0 -0
  38. ComfyUI/__pycache__/latent_preview.cpython-312.pyc +0 -0
  39. ComfyUI/__pycache__/node_helpers.cpython-310.pyc +0 -0
  40. ComfyUI/__pycache__/node_helpers.cpython-312.pyc +0 -0
  41. ComfyUI/__pycache__/nodes.cpython-310.pyc +0 -0
  42. ComfyUI/__pycache__/nodes.cpython-312.pyc +0 -0
  43. ComfyUI/__pycache__/server.cpython-310.pyc +0 -0
  44. ComfyUI/__pycache__/server.cpython-312.pyc +0 -0
  45. ComfyUI/api_server/__init__.py +0 -0
  46. ComfyUI/api_server/__pycache__/__init__.cpython-310.pyc +0 -0
  47. ComfyUI/api_server/__pycache__/__init__.cpython-312.pyc +0 -0
  48. ComfyUI/api_server/routes/__init__.py +0 -0
  49. ComfyUI/api_server/routes/__pycache__/__init__.cpython-310.pyc +0 -0
  50. ComfyUI/api_server/routes/__pycache__/__init__.cpython-312.pyc +0 -0
.gitattributes CHANGED
@@ -33,3 +33,70 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait/sample/original_sample_asset/driving/d0.mp4 filter=lfs diff=lfs merge=lfs -text
37
+ ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait/sample/original_sample_asset/driving/d3.mp4 filter=lfs diff=lfs merge=lfs -text
38
+ ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait/sample/original_sample_asset/driving/d6.mp4 filter=lfs diff=lfs merge=lfs -text
39
+ ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait/sample/original_sample_asset/driving/d9.mp4 filter=lfs diff=lfs merge=lfs -text
40
+ ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/assets/examples/driving/d0.mp4 filter=lfs diff=lfs merge=lfs -text
41
+ ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/assets/examples/driving/d3.mp4 filter=lfs diff=lfs merge=lfs -text
42
+ ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/assets/examples/driving/d6.mp4 filter=lfs diff=lfs merge=lfs -text
43
+ ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/assets/examples/driving/d9.mp4 filter=lfs diff=lfs merge=lfs -text
44
+ ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/media_pipe/mp_models/face_landmarker_v2_with_blendshapes.task filter=lfs diff=lfs merge=lfs -text
45
+ ComfyUI/input/5ea55b65-8b30-4237-b111-044cb598e522.mp4 filter=lfs diff=lfs merge=lfs -text
46
+ ComfyUI/output/592c85c4-54ad-40bb-a351-8e5cdca03284_00001_.png filter=lfs diff=lfs merge=lfs -text
47
+ ComfyUI/output/592c85c4-54ad-40bb-a351-8e5cdca03284_00002_.png filter=lfs diff=lfs merge=lfs -text
48
+ ComfyUI/output/592c85c4-54ad-40bb-a351-8e5cdca03284_00003_.png filter=lfs diff=lfs merge=lfs -text
49
+ ComfyUI/output/5d077f92-e715-44af-8b2c-3f30468382c7_00001.png filter=lfs diff=lfs merge=lfs -text
50
+ ComfyUI/output/91c47c3c-e077-431f-9865-c56663713114_00001_.png filter=lfs diff=lfs merge=lfs -text
51
+ ComfyUI/output/ComfyUI_00001_.png filter=lfs diff=lfs merge=lfs -text
52
+ ComfyUI/output/ComfyUI_00002_.png filter=lfs diff=lfs merge=lfs -text
53
+ ComfyUI/output/e4a51670-8e87-44e9-a090-a829d4827ac8_00001.png filter=lfs diff=lfs merge=lfs -text
54
+ ComfyUI/output/e700c0cc-3420-40f6-b91d-0cb64e30cbc4_00001.png filter=lfs diff=lfs merge=lfs -text
55
+ videos/041bec8d-ec3e-49d3-8099-9744100255ee.mp4 filter=lfs diff=lfs merge=lfs -text
56
+ videos/0b00ea2b-6100-464f-936c-815d499eb0a1.mp4 filter=lfs diff=lfs merge=lfs -text
57
+ videos/0b784aa7-87c7-473b-993e-d7b17e8391d0.mp4 filter=lfs diff=lfs merge=lfs -text
58
+ videos/10c4c8ea-b57e-4d80-b3d5-cd4e9fb57067.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ videos/12c6161c-85e5-400c-8ec5-bc964080e081.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ videos/17b2171c-2268-4fa5-be00-b15e6e6afad4.mp4 filter=lfs diff=lfs merge=lfs -text
61
+ videos/1edf07a9-5639-4fab-b4d2-3ef972d1094c.mp4 filter=lfs diff=lfs merge=lfs -text
62
+ videos/215db566-06be-41f9-bfd5-c7613aa66fcc.mp4 filter=lfs diff=lfs merge=lfs -text
63
+ videos/22653074-66d2-4234-8139-d9796181897d.mp4 filter=lfs diff=lfs merge=lfs -text
64
+ videos/25845fec-b0ca-4dfb-984e-48a8f8066520.mp4 filter=lfs diff=lfs merge=lfs -text
65
+ videos/2d5e6db0-f46c-479e-8cf7-8ffd488a0340.mp4 filter=lfs diff=lfs merge=lfs -text
66
+ videos/3292ba70-6951-46f1-b579-382087b48955.mp4 filter=lfs diff=lfs merge=lfs -text
67
+ videos/3e3a2b4d-5e8f-49a4-9177-2388af02116b.mp4 filter=lfs diff=lfs merge=lfs -text
68
+ videos/3f5a4d74-03bb-4d20-a297-81a7e2b677b7.mp4 filter=lfs diff=lfs merge=lfs -text
69
+ videos/54cfb6a0-1f93-4c6e-ad9e-25d48bc1a8d2.mp4 filter=lfs diff=lfs merge=lfs -text
70
+ videos/562666dd-a1eb-4027-954c-d4478dc287f3.mp4 filter=lfs diff=lfs merge=lfs -text
71
+ videos/5ea55b65-8b30-4237-b111-044cb598e522.mp4 filter=lfs diff=lfs merge=lfs -text
72
+ videos/5f457e80-32ef-4945-bb85-66d7c9afed3f.mp4 filter=lfs diff=lfs merge=lfs -text
73
+ videos/60ccfc78-29f9-4eca-b2bf-dfb02a501464.mp4 filter=lfs diff=lfs merge=lfs -text
74
+ videos/6252a544-f1c8-4c7c-bb02-04641e6371d5.mp4 filter=lfs diff=lfs merge=lfs -text
75
+ videos/70d96713-f135-4ce7-8693-56c90b4c07a6.mp4 filter=lfs diff=lfs merge=lfs -text
76
+ videos/78d31164-696f-4960-9972-a22d9f4b7390.mp4 filter=lfs diff=lfs merge=lfs -text
77
+ videos/7a058651-ca34-4195-8187-ba352a093f08.mp4 filter=lfs diff=lfs merge=lfs -text
78
+ videos/7aaa2b05-5207-4c84-b2f9-926b0219cae1.mp4 filter=lfs diff=lfs merge=lfs -text
79
+ videos/7e77ccb1-d401-4433-b4b5-461f1e32416a.mp4 filter=lfs diff=lfs merge=lfs -text
80
+ videos/80325bb5-9ec4-491a-91f1-4bcab08f9d95.mp4 filter=lfs diff=lfs merge=lfs -text
81
+ videos/869adff9-ff60-4675-a2c6-7dd977af020f.mp4 filter=lfs diff=lfs merge=lfs -text
82
+ videos/8fd69eda-bfb6-4912-b221-8970b0e022f2.mp4 filter=lfs diff=lfs merge=lfs -text
83
+ videos/9033c311-5e1d-4706-8144-3f48312a16eb.mp4 filter=lfs diff=lfs merge=lfs -text
84
+ videos/91f61cc0-5d7a-4d0b-b962-7535010b516e.mp4 filter=lfs diff=lfs merge=lfs -text
85
+ videos/960fa4af-d8d7-4825-bf14-2a5791770601.mp4 filter=lfs diff=lfs merge=lfs -text
86
+ videos/981e172d-9f14-48aa-a781-fcf1f2ca4383.mp4 filter=lfs diff=lfs merge=lfs -text
87
+ videos/9a8df2cd-173e-4731-8b4f-6d7e0e4c3ead.mp4 filter=lfs diff=lfs merge=lfs -text
88
+ videos/a0aa50ff-a945-44c0-8063-8a1cd288f709.mp4 filter=lfs diff=lfs merge=lfs -text
89
+ videos/a735ad8a-32c1-451e-919b-9e898136e257.mp4 filter=lfs diff=lfs merge=lfs -text
90
+ videos/b55e2df0-5aa7-4a47-bcfb-775ad1475ac1.mp4 filter=lfs diff=lfs merge=lfs -text
91
+ videos/b80deaef-59b1-4c29-b9b7-70a8f8148097.mp4 filter=lfs diff=lfs merge=lfs -text
92
+ videos/c413f7bb-ce54-436c-8528-da89e86fbcc6.mp4 filter=lfs diff=lfs merge=lfs -text
93
+ videos/c98cb9f7-7d2b-40fc-9dd9-bfbe32262075.mp4 filter=lfs diff=lfs merge=lfs -text
94
+ videos/c9ebdebf-d037-46b9-abc6-3941e2e82a22.mp4 filter=lfs diff=lfs merge=lfs -text
95
+ videos/cbf31055-0be5-4cfc-a623-acd5269e0ea8.mp4 filter=lfs diff=lfs merge=lfs -text
96
+ videos/ccba6c43-054c-4137-aecc-603043f1bbfe.mp4 filter=lfs diff=lfs merge=lfs -text
97
+ videos/ceb560e9-31a4-4635-b8fd-c98cf967b15d.mp4 filter=lfs diff=lfs merge=lfs -text
98
+ videos/e6d76f7b-051e-4c33-88ba-4e7f9bc0d684.mp4 filter=lfs diff=lfs merge=lfs -text
99
+ videos/ea389de9-1cfd-4c54-aef5-78e8167c9b61.mp4 filter=lfs diff=lfs merge=lfs -text
100
+ videos/f1d35b56-48fe-4735-92d0-a053ae7bcd77.mp4 filter=lfs diff=lfs merge=lfs -text
101
+ videos/fab41e39-d56d-4196-b329-c9be092b0347.mp4 filter=lfs diff=lfs merge=lfs -text
102
+ videos/fc609c77-d310-4586-b3bf-c13ee6cbb4bf.mp4 filter=lfs diff=lfs merge=lfs -text
ComfyUI/.ci/update_windows/update.py ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pygit2
2
+ from datetime import datetime
3
+ import sys
4
+ import os
5
+ import shutil
6
+ import filecmp
7
+
8
+ def pull(repo, remote_name='origin', branch='master'):
9
+ for remote in repo.remotes:
10
+ if remote.name == remote_name:
11
+ remote.fetch()
12
+ remote_master_id = repo.lookup_reference('refs/remotes/origin/%s' % (branch)).target
13
+ merge_result, _ = repo.merge_analysis(remote_master_id)
14
+ # Up to date, do nothing
15
+ if merge_result & pygit2.GIT_MERGE_ANALYSIS_UP_TO_DATE:
16
+ return
17
+ # We can just fastforward
18
+ elif merge_result & pygit2.GIT_MERGE_ANALYSIS_FASTFORWARD:
19
+ repo.checkout_tree(repo.get(remote_master_id))
20
+ try:
21
+ master_ref = repo.lookup_reference('refs/heads/%s' % (branch))
22
+ master_ref.set_target(remote_master_id)
23
+ except KeyError:
24
+ repo.create_branch(branch, repo.get(remote_master_id))
25
+ repo.head.set_target(remote_master_id)
26
+ elif merge_result & pygit2.GIT_MERGE_ANALYSIS_NORMAL:
27
+ repo.merge(remote_master_id)
28
+
29
+ if repo.index.conflicts is not None:
30
+ for conflict in repo.index.conflicts:
31
+ print('Conflicts found in:', conflict[0].path)
32
+ raise AssertionError('Conflicts, ahhhhh!!')
33
+
34
+ user = repo.default_signature
35
+ tree = repo.index.write_tree()
36
+ commit = repo.create_commit('HEAD',
37
+ user,
38
+ user,
39
+ 'Merge!',
40
+ tree,
41
+ [repo.head.target, remote_master_id])
42
+ # We need to do this or git CLI will think we are still merging.
43
+ repo.state_cleanup()
44
+ else:
45
+ raise AssertionError('Unknown merge analysis result')
46
+
47
+ pygit2.option(pygit2.GIT_OPT_SET_OWNER_VALIDATION, 0)
48
+ repo_path = str(sys.argv[1])
49
+ repo = pygit2.Repository(repo_path)
50
+ ident = pygit2.Signature('comfyui', 'comfy@ui')
51
+ try:
52
+ print("stashing current changes")
53
+ repo.stash(ident)
54
+ except KeyError:
55
+ print("nothing to stash")
56
+ backup_branch_name = 'backup_branch_{}'.format(datetime.today().strftime('%Y-%m-%d_%H_%M_%S'))
57
+ print("creating backup branch: {}".format(backup_branch_name))
58
+ try:
59
+ repo.branches.local.create(backup_branch_name, repo.head.peel())
60
+ except:
61
+ pass
62
+
63
+ print("checking out master branch")
64
+ branch = repo.lookup_branch('master')
65
+ if branch is None:
66
+ ref = repo.lookup_reference('refs/remotes/origin/master')
67
+ repo.checkout(ref)
68
+ branch = repo.lookup_branch('master')
69
+ if branch is None:
70
+ repo.create_branch('master', repo.get(ref.target))
71
+ else:
72
+ ref = repo.lookup_reference(branch.name)
73
+ repo.checkout(ref)
74
+
75
+ print("pulling latest changes")
76
+ pull(repo)
77
+
78
+ if "--stable" in sys.argv:
79
+ def latest_tag(repo):
80
+ versions = []
81
+ for k in repo.references:
82
+ try:
83
+ prefix = "refs/tags/v"
84
+ if k.startswith(prefix):
85
+ version = list(map(int, k[len(prefix):].split(".")))
86
+ versions.append((version[0] * 10000000000 + version[1] * 100000 + version[2], k))
87
+ except:
88
+ pass
89
+ versions.sort()
90
+ if len(versions) > 0:
91
+ return versions[-1][1]
92
+ return None
93
+ latest_tag = latest_tag(repo)
94
+ if latest_tag is not None:
95
+ repo.checkout(latest_tag)
96
+
97
+ print("Done!")
98
+
99
+ self_update = True
100
+ if len(sys.argv) > 2:
101
+ self_update = '--skip_self_update' not in sys.argv
102
+
103
+ update_py_path = os.path.realpath(__file__)
104
+ repo_update_py_path = os.path.join(repo_path, ".ci/update_windows/update.py")
105
+
106
+ cur_path = os.path.dirname(update_py_path)
107
+
108
+
109
+ req_path = os.path.join(cur_path, "current_requirements.txt")
110
+ repo_req_path = os.path.join(repo_path, "requirements.txt")
111
+
112
+
113
+ def files_equal(file1, file2):
114
+ try:
115
+ return filecmp.cmp(file1, file2, shallow=False)
116
+ except:
117
+ return False
118
+
119
+ def file_size(f):
120
+ try:
121
+ return os.path.getsize(f)
122
+ except:
123
+ return 0
124
+
125
+
126
+ if self_update and not files_equal(update_py_path, repo_update_py_path) and file_size(repo_update_py_path) > 10:
127
+ shutil.copy(repo_update_py_path, os.path.join(cur_path, "update_new.py"))
128
+ exit()
129
+
130
+ if not os.path.exists(req_path) or not files_equal(repo_req_path, req_path):
131
+ import subprocess
132
+ try:
133
+ subprocess.check_call([sys.executable, '-s', '-m', 'pip', 'install', '-r', repo_req_path])
134
+ shutil.copy(repo_req_path, req_path)
135
+ except:
136
+ pass
137
+
138
+
139
+ stable_update_script = os.path.join(repo_path, ".ci/update_windows/update_comfyui_stable.bat")
140
+ stable_update_script_to = os.path.join(cur_path, "update_comfyui_stable.bat")
141
+
142
+ try:
143
+ if not file_size(stable_update_script_to) > 10:
144
+ shutil.copy(stable_update_script, stable_update_script_to)
145
+ except:
146
+ pass
ComfyUI/.ci/update_windows/update_comfyui.bat ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\
3
+ if exist update_new.py (
4
+ move /y update_new.py update.py
5
+ echo Running updater again since it got updated.
6
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update
7
+ )
8
+ if "%~1"=="" pause
ComfyUI/.ci/update_windows/update_comfyui_stable.bat ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --stable
3
+ if exist update_new.py (
4
+ move /y update_new.py update.py
5
+ echo Running updater again since it got updated.
6
+ ..\python_embeded\python.exe .\update.py ..\ComfyUI\ --skip_self_update --stable
7
+ )
8
+ if "%~1"=="" pause
ComfyUI/.ci/windows_base_files/README_VERY_IMPORTANT.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ HOW TO RUN:
2
+
3
+ if you have a NVIDIA gpu:
4
+
5
+ run_nvidia_gpu.bat
6
+
7
+
8
+
9
+ To run it in slow CPU mode:
10
+
11
+ run_cpu.bat
12
+
13
+
14
+
15
+ IF YOU GET A RED ERROR IN THE UI MAKE SURE YOU HAVE A MODEL/CHECKPOINT IN: ComfyUI\models\checkpoints
16
+
17
+ You can download the stable diffusion 1.5 one from: https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/blob/main/v1-5-pruned-emaonly-fp16.safetensors
18
+
19
+
20
+ RECOMMENDED WAY TO UPDATE:
21
+ To update the ComfyUI code: update\update_comfyui.bat
22
+
23
+
24
+
25
+ To update ComfyUI with the python dependencies, note that you should ONLY run this if you have issues with python dependencies.
26
+ update\update_comfyui_and_python_dependencies.bat
27
+
28
+
29
+ TO SHARE MODELS BETWEEN COMFYUI AND ANOTHER UI:
30
+ In the ComfyUI directory you will find a file: extra_model_paths.yaml.example
31
+ Rename this file to: extra_model_paths.yaml and edit it with your favorite text editor.
ComfyUI/.ci/windows_base_files/run_cpu.bat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .\python_embeded\python.exe -s ComfyUI\main.py --cpu --windows-standalone-build
2
+ pause
ComfyUI/.ci/windows_base_files/run_nvidia_gpu.bat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
2
+ pause
ComfyUI/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast
2
+ pause
ComfyUI/.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ /web/assets/** linguist-generated
2
+ /web/** linguist-vendored
ComfyUI/.github/ISSUE_TEMPLATE/bug-report.yml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Bug Report
2
+ description: "Something is broken inside of ComfyUI. (Do not use this if you're just having issues and need help, or if the issue relates to a custom node)"
3
+ labels: ["Potential Bug"]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Before submitting a **Bug Report**, please ensure the following:
9
+
10
+ - **1:** You are running the latest version of ComfyUI.
11
+ - **2:** You have looked at the existing bug reports and made sure this isn't already reported.
12
+ - **3:** You confirmed that the bug is not caused by a custom node. You can disable all custom nodes by passing
13
+ `--disable-all-custom-nodes` command line argument.
14
+ - **4:** This is an actual bug in ComfyUI, not just a support question. A bug is when you can specify exact
15
+ steps to replicate what went wrong and others will be able to repeat your steps and see the same issue happen.
16
+
17
+ If unsure, ask on the [ComfyUI Matrix Space](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) or the [Comfy Org Discord](https://discord.gg/comfyorg) first.
18
+ - type: textarea
19
+ attributes:
20
+ label: Expected Behavior
21
+ description: "What you expected to happen."
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ attributes:
26
+ label: Actual Behavior
27
+ description: "What actually happened. Please include a screenshot of the issue if possible."
28
+ validations:
29
+ required: true
30
+ - type: textarea
31
+ attributes:
32
+ label: Steps to Reproduce
33
+ description: "Describe how to reproduce the issue. Please be sure to attach a workflow JSON or PNG, ideally one that doesn't require custom nodes to test. If the bug open happens when certain custom nodes are used, most likely that custom node is what has the bug rather than ComfyUI, in which case it should be reported to the node's author."
34
+ validations:
35
+ required: true
36
+ - type: textarea
37
+ attributes:
38
+ label: Debug Logs
39
+ description: "Please copy the output from your terminal logs here."
40
+ render: powershell
41
+ validations:
42
+ required: true
43
+ - type: textarea
44
+ attributes:
45
+ label: Other
46
+ description: "Any other additional information you think might be helpful."
47
+ validations:
48
+ required: false
ComfyUI/.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: ComfyUI Frontend Issues
4
+ url: https://github.com/Comfy-Org/ComfyUI_frontend/issues
5
+ about: Issues related to the ComfyUI frontend (display issues, user interaction bugs), please go to the frontend repo to file the issue
6
+ - name: ComfyUI Matrix Space
7
+ url: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org
8
+ about: The ComfyUI Matrix Space is available for support and general discussion related to ComfyUI (Matrix is like Discord but open source).
9
+ - name: Comfy Org Discord
10
+ url: https://discord.gg/comfyorg
11
+ about: The Comfy Org Discord is available for support and general discussion related to ComfyUI.
ComfyUI/.github/ISSUE_TEMPLATE/feature-request.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Feature Request
2
+ description: "You have an idea for something new you would like to see added to ComfyUI's core."
3
+ labels: [ "Feature" ]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Before submitting a **Feature Request**, please ensure the following:
9
+
10
+ **1:** You are running the latest version of ComfyUI.
11
+ **2:** You have looked to make sure there is not already a feature that does what you need, and there is not already a Feature Request listed for the same idea.
12
+ **3:** This is something that makes sense to add to ComfyUI Core, and wouldn't make more sense as a custom node.
13
+
14
+ If unsure, ask on the [ComfyUI Matrix Space](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) or the [Comfy Org Discord](https://discord.gg/comfyorg) first.
15
+ - type: textarea
16
+ attributes:
17
+ label: Feature Idea
18
+ description: "Describe the feature you want to see."
19
+ validations:
20
+ required: true
21
+ - type: textarea
22
+ attributes:
23
+ label: Existing Solutions
24
+ description: "Please search through available custom nodes / extensions to see if there are existing custom solutions for this. If so, please link the options you found here as a reference."
25
+ validations:
26
+ required: false
27
+ - type: textarea
28
+ attributes:
29
+ label: Other
30
+ description: "Any other additional information you think might be helpful."
31
+ validations:
32
+ required: false
ComfyUI/.github/ISSUE_TEMPLATE/user-support.yml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: User Support
2
+ description: "Use this if you need help with something, or you're experiencing an issue."
3
+ labels: [ "User Support" ]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Before submitting a **User Report** issue, please ensure the following:
9
+
10
+ **1:** You are running the latest version of ComfyUI.
11
+ **2:** You have made an effort to find public answers to your question before asking here. In other words, you googled it first, and scrolled through recent help topics.
12
+
13
+ If unsure, ask on the [ComfyUI Matrix Space](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) or the [Comfy Org Discord](https://discord.gg/comfyorg) first.
14
+ - type: textarea
15
+ attributes:
16
+ label: Your question
17
+ description: "Post your question here. Please be as detailed as possible."
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ attributes:
22
+ label: Logs
23
+ description: "If your question relates to an issue you're experiencing, please go to `Server` -> `Logs` -> potentially set `View Type` to `Debug` as well, then copypaste all the text into here."
24
+ render: powershell
25
+ validations:
26
+ required: false
27
+ - type: textarea
28
+ attributes:
29
+ label: Other
30
+ description: "Any other additional information you think might be helpful."
31
+ validations:
32
+ required: false
ComfyUI/.github/workflows/pullrequest-ci-run.yml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is the GitHub Workflow that drives full-GPU-enabled tests of pull requests to ComfyUI, when the 'Run-CI-Test' label is added
2
+ # Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
3
+ name: Pull Request CI Workflow Runs
4
+ on:
5
+ pull_request_target:
6
+ types: [labeled]
7
+
8
+ jobs:
9
+ pr-test-stable:
10
+ if: ${{ github.event.label.name == 'Run-CI-Test' }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [macos, linux, windows]
15
+ python_version: ["3.9", "3.10", "3.11", "3.12"]
16
+ cuda_version: ["12.1"]
17
+ torch_version: ["stable"]
18
+ include:
19
+ - os: macos
20
+ runner_label: [self-hosted, macOS]
21
+ flags: "--use-pytorch-cross-attention"
22
+ - os: linux
23
+ runner_label: [self-hosted, Linux]
24
+ flags: ""
25
+ - os: windows
26
+ runner_label: [self-hosted, win]
27
+ flags: ""
28
+ runs-on: ${{ matrix.runner_label }}
29
+ steps:
30
+ - name: Test Workflows
31
+ uses: comfy-org/comfy-action@main
32
+ with:
33
+ os: ${{ matrix.os }}
34
+ python_version: ${{ matrix.python_version }}
35
+ torch_version: ${{ matrix.torch_version }}
36
+ google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
37
+ comfyui_flags: ${{ matrix.flags }}
38
+ use_prior_commit: 'true'
39
+ comment:
40
+ if: ${{ github.event.label.name == 'Run-CI-Test' }}
41
+ runs-on: ubuntu-latest
42
+ permissions:
43
+ pull-requests: write
44
+ steps:
45
+ - uses: actions/github-script@v6
46
+ with:
47
+ script: |
48
+ github.rest.issues.createComment({
49
+ issue_number: context.issue.number,
50
+ owner: context.repo.owner,
51
+ repo: context.repo.repo,
52
+ body: '(Automated Bot Message) CI Tests are running, you can view the results at https://ci.comfy.org/?branch=${{ github.event.pull_request.number }}%2Fmerge'
53
+ })
ComfyUI/.github/workflows/pylint.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Python Linting
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ pylint:
7
+ name: Run Pylint
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout repository
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v2
16
+ with:
17
+ python-version: 3.x
18
+
19
+ - name: Install Pylint
20
+ run: pip install pylint
21
+
22
+ - name: Run Pylint
23
+ run: pylint --rcfile=.pylintrc $(find . -type f -name "*.py")
ComfyUI/.github/workflows/stable-release.yml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ name: "Release Stable Version"
3
+
4
+ on:
5
+ workflow_dispatch:
6
+ inputs:
7
+ git_tag:
8
+ description: 'Git tag'
9
+ required: true
10
+ type: string
11
+ cu:
12
+ description: 'CUDA version'
13
+ required: true
14
+ type: string
15
+ default: "121"
16
+ python_minor:
17
+ description: 'Python minor version'
18
+ required: true
19
+ type: string
20
+ default: "11"
21
+ python_patch:
22
+ description: 'Python patch version'
23
+ required: true
24
+ type: string
25
+ default: "9"
26
+
27
+
28
+ jobs:
29
+ package_comfy_windows:
30
+ permissions:
31
+ contents: "write"
32
+ packages: "write"
33
+ pull-requests: "read"
34
+ runs-on: windows-latest
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+ with:
38
+ ref: ${{ inputs.git_tag }}
39
+ fetch-depth: 0
40
+ persist-credentials: false
41
+ - uses: actions/cache/restore@v4
42
+ id: cache
43
+ with:
44
+ path: |
45
+ cu${{ inputs.cu }}_python_deps.tar
46
+ update_comfyui_and_python_dependencies.bat
47
+ key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
48
+ - shell: bash
49
+ run: |
50
+ mv cu${{ inputs.cu }}_python_deps.tar ../
51
+ mv update_comfyui_and_python_dependencies.bat ../
52
+ cd ..
53
+ tar xf cu${{ inputs.cu }}_python_deps.tar
54
+ pwd
55
+ ls
56
+
57
+ - shell: bash
58
+ run: |
59
+ cd ..
60
+ cp -r ComfyUI ComfyUI_copy
61
+ curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embeded.zip
62
+ unzip python_embeded.zip -d python_embeded
63
+ cd python_embeded
64
+ echo ${{ env.MINOR_VERSION }}
65
+ echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
66
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
67
+ ./python.exe get-pip.py
68
+ ./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
69
+ sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
70
+ cd ..
71
+
72
+ git clone --depth 1 https://github.com/comfyanonymous/taesd
73
+ cp taesd/*.pth ./ComfyUI_copy/models/vae_approx/
74
+
75
+ mkdir ComfyUI_windows_portable
76
+ mv python_embeded ComfyUI_windows_portable
77
+ mv ComfyUI_copy ComfyUI_windows_portable/ComfyUI
78
+
79
+ cd ComfyUI_windows_portable
80
+
81
+ mkdir update
82
+ cp -r ComfyUI/.ci/update_windows/* ./update/
83
+ cp -r ComfyUI/.ci/windows_base_files/* ./
84
+ cp ../update_comfyui_and_python_dependencies.bat ./update/
85
+
86
+ cd ..
87
+
88
+ "C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
89
+ mv ComfyUI_windows_portable.7z ComfyUI/ComfyUI_windows_portable_nvidia.7z
90
+
91
+ cd ComfyUI_windows_portable
92
+ python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
93
+
94
+ ls
95
+
96
+ - name: Upload binaries to release
97
+ uses: svenstaro/upload-release-action@v2
98
+ with:
99
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
100
+ file: ComfyUI_windows_portable_nvidia.7z
101
+ tag: ${{ inputs.git_tag }}
102
+ overwrite: true
103
+ prerelease: true
104
+ make_latest: false
ComfyUI/.github/workflows/stale-issues.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Close stale issues'
2
+ on:
3
+ schedule:
4
+ # Run daily at 430 am PT
5
+ - cron: '30 11 * * *'
6
+ permissions:
7
+ issues: write
8
+
9
+ jobs:
10
+ stale:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/stale@v9
14
+ with:
15
+ 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."
16
+ days-before-stale: 30
17
+ days-before-close: 7
18
+ stale-issue-label: 'Stale'
19
+ only-labels: 'User Support'
20
+ exempt-all-assignees: true
21
+ exempt-all-milestones: true
ComfyUI/.github/workflows/test-build.yml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build package
2
+
3
+ #
4
+ # This workflow is a test of the python package build.
5
+ # Install Python dependencies across different Python versions.
6
+ #
7
+
8
+ on:
9
+ push:
10
+ paths:
11
+ - "requirements.txt"
12
+ - ".github/workflows/test-build.yml"
13
+
14
+ jobs:
15
+ build:
16
+ name: Build Test
17
+ runs-on: ubuntu-latest
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ python-version: ["3.8", "3.9", "3.10", "3.11"]
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install -r requirements.txt
ComfyUI/.github/workflows/test-ci.yml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is the GitHub Workflow that drives automatic full-GPU-enabled tests of all new commits to the master branch of ComfyUI
2
+ # Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
3
+ name: Full Comfy CI Workflow Runs
4
+ on:
5
+ push:
6
+ branches:
7
+ - master
8
+ paths-ignore:
9
+ - 'app/**'
10
+ - 'input/**'
11
+ - 'output/**'
12
+ - 'notebooks/**'
13
+ - 'script_examples/**'
14
+ - '.github/**'
15
+ - 'web/**'
16
+ workflow_dispatch:
17
+
18
+ jobs:
19
+ test-stable:
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ os: [macos, linux, windows]
24
+ python_version: ["3.9", "3.10", "3.11", "3.12"]
25
+ cuda_version: ["12.1"]
26
+ torch_version: ["stable"]
27
+ include:
28
+ - os: macos
29
+ runner_label: [self-hosted, macOS]
30
+ flags: "--use-pytorch-cross-attention"
31
+ - os: linux
32
+ runner_label: [self-hosted, Linux]
33
+ flags: ""
34
+ - os: windows
35
+ runner_label: [self-hosted, win]
36
+ flags: ""
37
+ runs-on: ${{ matrix.runner_label }}
38
+ steps:
39
+ - name: Test Workflows
40
+ uses: comfy-org/comfy-action@main
41
+ with:
42
+ os: ${{ matrix.os }}
43
+ python_version: ${{ matrix.python_version }}
44
+ torch_version: ${{ matrix.torch_version }}
45
+ google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
46
+ comfyui_flags: ${{ matrix.flags }}
47
+
48
+ test-win-nightly:
49
+ strategy:
50
+ fail-fast: true
51
+ matrix:
52
+ os: [windows]
53
+ python_version: ["3.9", "3.10", "3.11", "3.12"]
54
+ cuda_version: ["12.1"]
55
+ torch_version: ["nightly"]
56
+ include:
57
+ - os: windows
58
+ runner_label: [self-hosted, win]
59
+ flags: ""
60
+ runs-on: ${{ matrix.runner_label }}
61
+ steps:
62
+ - name: Test Workflows
63
+ uses: comfy-org/comfy-action@main
64
+ with:
65
+ os: ${{ matrix.os }}
66
+ python_version: ${{ matrix.python_version }}
67
+ torch_version: ${{ matrix.torch_version }}
68
+ google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
69
+ comfyui_flags: ${{ matrix.flags }}
70
+
71
+ test-unix-nightly:
72
+ strategy:
73
+ fail-fast: false
74
+ matrix:
75
+ os: [macos, linux]
76
+ python_version: ["3.11"]
77
+ cuda_version: ["12.1"]
78
+ torch_version: ["nightly"]
79
+ include:
80
+ - os: macos
81
+ runner_label: [self-hosted, macOS]
82
+ flags: "--use-pytorch-cross-attention"
83
+ - os: linux
84
+ runner_label: [self-hosted, Linux]
85
+ flags: ""
86
+ runs-on: ${{ matrix.runner_label }}
87
+ steps:
88
+ - name: Test Workflows
89
+ uses: comfy-org/comfy-action@main
90
+ with:
91
+ os: ${{ matrix.os }}
92
+ python_version: ${{ matrix.python_version }}
93
+ torch_version: ${{ matrix.torch_version }}
94
+ google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
95
+ comfyui_flags: ${{ matrix.flags }}
ComfyUI/.github/workflows/test-launch.yml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test server launches without errors
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
+ branches: [ main, master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout ComfyUI
14
+ uses: actions/checkout@v4
15
+ with:
16
+ repository: "comfyanonymous/ComfyUI"
17
+ path: "ComfyUI"
18
+ - uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.8'
21
+ - name: Install requirements
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
25
+ pip install -r requirements.txt
26
+ pip install wait-for-it
27
+ working-directory: ComfyUI
28
+ - name: Start ComfyUI server
29
+ run: |
30
+ python main.py --cpu 2>&1 | tee console_output.log &
31
+ wait-for-it --service 127.0.0.1:8188 -t 600
32
+ working-directory: ComfyUI
33
+ - name: Check for unhandled exceptions in server log
34
+ run: |
35
+ if grep -qE "Exception|Error" console_output.log; then
36
+ echo "Unhandled exception/error found in server log."
37
+ exit 1
38
+ fi
39
+ working-directory: ComfyUI
40
+ - uses: actions/upload-artifact@v4
41
+ if: always()
42
+ with:
43
+ name: console-output
44
+ path: ComfyUI/console_output.log
45
+ retention-days: 30
ComfyUI/.github/workflows/windows_release_dependencies.yml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Windows Release dependencies"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ xformers:
7
+ description: 'xformers version'
8
+ required: false
9
+ type: string
10
+ default: ""
11
+ extra_dependencies:
12
+ description: 'extra dependencies'
13
+ required: false
14
+ type: string
15
+ default: "\"numpy<2\""
16
+ cu:
17
+ description: 'cuda version'
18
+ required: true
19
+ type: string
20
+ default: "124"
21
+
22
+ python_minor:
23
+ description: 'python minor version'
24
+ required: true
25
+ type: string
26
+ default: "11"
27
+
28
+ python_patch:
29
+ description: 'python patch version'
30
+ required: true
31
+ type: string
32
+ default: "9"
33
+ # push:
34
+ # branches:
35
+ # - master
36
+
37
+ jobs:
38
+ build_dependencies:
39
+ runs-on: windows-latest
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
45
+
46
+ - shell: bash
47
+ run: |
48
+ echo "@echo off
49
+ call update_comfyui.bat nopause
50
+ echo -
51
+ echo This will try to update pytorch and all python dependencies.
52
+ echo -
53
+ echo If you just want to update normally, close this and run update_comfyui.bat instead.
54
+ echo -
55
+ pause
56
+ ..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
57
+ pause" > update_comfyui_and_python_dependencies.bat
58
+
59
+ python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} ${{ inputs.extra_dependencies }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r requirements.txt pygit2 -w ./temp_wheel_dir
60
+ python -m pip install --no-cache-dir ./temp_wheel_dir/*
61
+ echo installed basic
62
+ ls -lah temp_wheel_dir
63
+ mv temp_wheel_dir cu${{ inputs.cu }}_python_deps
64
+ tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps
65
+
66
+ - uses: actions/cache/save@v4
67
+ with:
68
+ path: |
69
+ cu${{ inputs.cu }}_python_deps.tar
70
+ update_comfyui_and_python_dependencies.bat
71
+ key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
ComfyUI/.github/workflows/windows_release_nightly_pytorch.yml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Windows Release Nightly pytorch"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ cu:
7
+ description: 'cuda version'
8
+ required: true
9
+ type: string
10
+ default: "124"
11
+
12
+ python_minor:
13
+ description: 'python minor version'
14
+ required: true
15
+ type: string
16
+ default: "12"
17
+
18
+ python_patch:
19
+ description: 'python patch version'
20
+ required: true
21
+ type: string
22
+ default: "4"
23
+ # push:
24
+ # branches:
25
+ # - master
26
+
27
+ jobs:
28
+ build:
29
+ permissions:
30
+ contents: "write"
31
+ packages: "write"
32
+ pull-requests: "read"
33
+ runs-on: windows-latest
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+ with:
37
+ fetch-depth: 0
38
+ persist-credentials: false
39
+ - uses: actions/setup-python@v5
40
+ with:
41
+ python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
42
+ - shell: bash
43
+ run: |
44
+ cd ..
45
+ cp -r ComfyUI ComfyUI_copy
46
+ curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embeded.zip
47
+ unzip python_embeded.zip -d python_embeded
48
+ cd python_embeded
49
+ echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
50
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
51
+ ./python.exe get-pip.py
52
+ python -m pip wheel torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
53
+ ls ../temp_wheel_dir
54
+ ./python.exe -s -m pip install --pre ../temp_wheel_dir/*
55
+ sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
56
+ cd ..
57
+
58
+ git clone --depth 1 https://github.com/comfyanonymous/taesd
59
+ cp taesd/*.pth ./ComfyUI_copy/models/vae_approx/
60
+
61
+ mkdir ComfyUI_windows_portable_nightly_pytorch
62
+ mv python_embeded ComfyUI_windows_portable_nightly_pytorch
63
+ mv ComfyUI_copy ComfyUI_windows_portable_nightly_pytorch/ComfyUI
64
+
65
+ cd ComfyUI_windows_portable_nightly_pytorch
66
+
67
+ mkdir update
68
+ cp -r ComfyUI/.ci/update_windows/* ./update/
69
+ cp -r ComfyUI/.ci/windows_base_files/* ./
70
+ cp -r ComfyUI/.ci/windows_nightly_base_files/* ./
71
+
72
+ echo "call update_comfyui.bat nopause
73
+ ..\python_embeded\python.exe -s -m pip install --upgrade --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
74
+ pause" > ./update/update_comfyui_and_python_dependencies.bat
75
+ cd ..
76
+
77
+ "C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI_windows_portable_nightly_pytorch
78
+ mv ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
79
+
80
+ cd ComfyUI_windows_portable_nightly_pytorch
81
+ python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
82
+
83
+ ls
84
+
85
+ - name: Upload binaries to release
86
+ uses: svenstaro/upload-release-action@v2
87
+ with:
88
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
89
+ file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
90
+ tag: "latest"
91
+ overwrite: true
ComfyUI/.github/workflows/windows_release_package.yml ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Windows Release packaging"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ cu:
7
+ description: 'cuda version'
8
+ required: true
9
+ type: string
10
+ default: "124"
11
+
12
+ python_minor:
13
+ description: 'python minor version'
14
+ required: true
15
+ type: string
16
+ default: "11"
17
+
18
+ python_patch:
19
+ description: 'python patch version'
20
+ required: true
21
+ type: string
22
+ default: "9"
23
+ # push:
24
+ # branches:
25
+ # - master
26
+
27
+ jobs:
28
+ package_comfyui:
29
+ permissions:
30
+ contents: "write"
31
+ packages: "write"
32
+ pull-requests: "read"
33
+ runs-on: windows-latest
34
+ steps:
35
+ - uses: actions/cache/restore@v4
36
+ id: cache
37
+ with:
38
+ path: |
39
+ cu${{ inputs.cu }}_python_deps.tar
40
+ update_comfyui_and_python_dependencies.bat
41
+ key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
42
+ - shell: bash
43
+ run: |
44
+ mv cu${{ inputs.cu }}_python_deps.tar ../
45
+ mv update_comfyui_and_python_dependencies.bat ../
46
+ cd ..
47
+ tar xf cu${{ inputs.cu }}_python_deps.tar
48
+ pwd
49
+ ls
50
+
51
+ - uses: actions/checkout@v4
52
+ with:
53
+ fetch-depth: 0
54
+ persist-credentials: false
55
+ - shell: bash
56
+ run: |
57
+ cd ..
58
+ cp -r ComfyUI ComfyUI_copy
59
+ curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embeded.zip
60
+ unzip python_embeded.zip -d python_embeded
61
+ cd python_embeded
62
+ echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
63
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
64
+ ./python.exe get-pip.py
65
+ ./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
66
+ sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
67
+ cd ..
68
+
69
+ git clone --depth 1 https://github.com/comfyanonymous/taesd
70
+ cp taesd/*.pth ./ComfyUI_copy/models/vae_approx/
71
+
72
+ mkdir ComfyUI_windows_portable
73
+ mv python_embeded ComfyUI_windows_portable
74
+ mv ComfyUI_copy ComfyUI_windows_portable/ComfyUI
75
+
76
+ cd ComfyUI_windows_portable
77
+
78
+ mkdir update
79
+ cp -r ComfyUI/.ci/update_windows/* ./update/
80
+ cp -r ComfyUI/.ci/windows_base_files/* ./
81
+ cp ../update_comfyui_and_python_dependencies.bat ./update/
82
+
83
+ cd ..
84
+
85
+ "C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
86
+ mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
87
+
88
+ cd ComfyUI_windows_portable
89
+ python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
90
+
91
+ ls
92
+
93
+ - name: Upload binaries to release
94
+ uses: svenstaro/upload-release-action@v2
95
+ with:
96
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
97
+ file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
98
+ tag: "latest"
99
+ overwrite: true
100
+
ComfyUI/.gitignore ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ /output/
4
+ /input/
5
+ !/input/example.png
6
+ /models/
7
+ /temp/
8
+ /custom_nodes/
9
+ !custom_nodes/example_node.py.example
10
+ extra_model_paths.yaml
11
+ /.vs
12
+ .vscode/
13
+ .idea/
14
+ venv/
15
+ /web/extensions/*
16
+ !/web/extensions/logging.js.example
17
+ !/web/extensions/core/
18
+ /tests-ui/data/object_info.json
19
+ /user/
20
+ *.log
21
+ web_custom_versions/
22
+ .DS_Store
ComfyUI/.ipynb_checkpoints/comfyui_3001-checkpoint.log ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## ComfyUI-Manager: installing dependencies done.
2
+ [2024-09-06 05:36] ** ComfyUI startup time: 2024-09-06 05:36:08.425419
3
+ [2024-09-06 05:36] ** Platform: Linux
4
+ [2024-09-06 05:36] ** Python version: 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0]
5
+ [2024-09-06 05:36] ** Python executable: /home/ubuntu/AI/AI_ENV/bin/python
6
+ [2024-09-06 05:36] ** ComfyUI Path: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI
7
+ [2024-09-06 05:36] ** Log path: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/comfyui.log
8
+ [2024-09-06 05:36]
9
+ Prestartup times for custom nodes:
10
+ [2024-09-06 05:36] 0.9 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Manager
11
+ [2024-09-06 05:36]
12
+ Total VRAM 22516 MB, total RAM 15779 MB
13
+ [2024-09-06 05:36] pytorch version: 2.4.1+cu121
14
+ [2024-09-06 05:36] Set vram state to: NORMAL_VRAM
15
+ [2024-09-06 05:36] Device: cuda:0 NVIDIA A10G : cudaMallocAsync
16
+ [2024-09-06 05:36] Using pytorch cross attention
17
+ [2024-09-06 05:36] [Prompt Server] web root: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/web
18
+ [2024-09-06 05:36] /home/ubuntu/AI/AI_ENV/lib/python3.10/site-packages/kornia/feature/lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
19
+ @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
20
+ [2024-09-06 05:36] Ib Custom Nodes: Loaded
21
+ [2024-09-06 05:36] [VideoHelperSuite] - WARNING - Failed to import imageio_ffmpeg
22
+ [2024-09-06 05:36] [VideoHelperSuite] - ERROR - No valid ffmpeg found.
23
+ [2024-09-06 05:36] Total VRAM 22516 MB, total RAM 15779 MB
24
+ [2024-09-06 05:36] pytorch version: 2.4.1+cu121
25
+ [2024-09-06 05:36] Set vram state to: NORMAL_VRAM
26
+ [2024-09-06 05:36] Device: cuda:0 NVIDIA A10G : cudaMallocAsync
27
+ [2024-09-06 05:36] ### Loading: ComfyUI-Manager (V2.50.3)
28
+ [2024-09-06 05:36] ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
29
+ [2024-09-06 05:36]
30
+ Import times for custom nodes:
31
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/websocket_image_save.py
32
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/comfyui_io_helpers
33
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI_Ib_CustomNodes
34
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI-KJNodes
35
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ
36
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI-Manager
37
+ [2024-09-06 05:36] 0.0 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
38
+ [2024-09-06 05:36] 0.1 seconds: /home/ubuntu/AI/comfyui/api comfyui/ComfyUI/ComfyUI/custom_nodes/ComfyUI_essentials
39
+ [2024-09-06 05:36]
40
+ [2024-09-06 05:36] Starting server
41
+
42
+ [2024-09-06 05:36] To see the GUI go to: http://0.0.0.0:3001
43
+ [2024-09-06 05:36] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
44
+ [2024-09-06 05:36] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
45
+ [2024-09-06 05:36] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
46
+ [2024-09-06 05:36] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
47
+ [2024-09-06 05:36] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
ComfyUI/.pylintrc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [MESSAGES CONTROL]
2
+ disable=all
3
+ enable=eval-used
ComfyUI/CODEOWNERS ADDED
@@ -0,0 +1 @@
 
 
1
+ * @comfyanonymous
ComfyUI/CONTRIBUTING.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing to ComfyUI
2
+
3
+ Welcome, and thank you for your interest in contributing to ComfyUI!
4
+
5
+ There are several ways in which you can contribute, beyond writing code. The goal of this document is to provide a high-level overview of how you can get involved.
6
+
7
+ ## Asking Questions
8
+
9
+ Have a question? Instead of opening an issue, please ask on [Discord](https://comfy.org/discord) or [Matrix](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) channels. Our team and the community will help you.
10
+
11
+ ## Providing Feedback
12
+
13
+ Your comments and feedback are welcome, and the development team is available via a handful of different channels.
14
+
15
+ See the `#bug-report`, `#feature-request` and `#feedback` channels on Discord.
16
+
17
+ ## Reporting Issues
18
+
19
+ Have you identified a reproducible problem in ComfyUI? Do you have a feature request? We want to hear about it! Here's how you can report your issue as effectively as possible.
20
+
21
+
22
+ ### Look For an Existing Issue
23
+
24
+ Before you create a new issue, please do a search in [open issues](https://github.com/comfyanonymous/ComfyUI/issues) to see if the issue or feature request has already been filed.
25
+
26
+ If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment:
27
+
28
+ * 👍 - upvote
29
+ * 👎 - downvote
30
+
31
+ If you cannot find an existing issue that describes your bug or feature, create a new issue. We have an issue template in place to organize new issues.
32
+
33
+
34
+ ### Creating Pull Requests
35
+
36
+ * Please refer to the article on [creating pull requests](https://github.com/comfyanonymous/ComfyUI/wiki/How-to-Contribute-Code) and contributing to this project.
37
+
38
+
39
+ ## Thank You
40
+
41
+ Your contributions to open source, large or small, make great projects like this possible. Thank you for taking the time to contribute.
ComfyUI/LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
ComfyUI/README.md ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div align="center">
2
+
3
+ # ComfyUI
4
+ **The most powerful and modular diffusion model GUI and backend.**
5
+
6
+
7
+ [![Website][website-shield]][website-url]
8
+ [![Dynamic JSON Badge][discord-shield]][discord-url]
9
+ [![Matrix][matrix-shield]][matrix-url]
10
+ <br>
11
+ [![][github-release-shield]][github-release-link]
12
+ [![][github-release-date-shield]][github-release-link]
13
+ [![][github-downloads-shield]][github-downloads-link]
14
+ [![][github-downloads-latest-shield]][github-downloads-link]
15
+
16
+ [matrix-shield]: https://img.shields.io/badge/Matrix-000000?style=flat&logo=matrix&logoColor=white
17
+ [matrix-url]: https://app.element.io/#/room/%23comfyui_space%3Amatrix.org
18
+ [website-shield]: https://img.shields.io/badge/ComfyOrg-4285F4?style=flat
19
+ [website-url]: https://www.comfy.org/
20
+ <!-- Workaround to display total user from https://github.com/badges/shields/issues/4500#issuecomment-2060079995 -->
21
+ [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
22
+ [discord-url]: https://www.comfy.org/discord
23
+
24
+ [github-release-shield]: https://img.shields.io/github/v/release/comfyanonymous/ComfyUI?style=flat&sort=semver
25
+ [github-release-link]: https://github.com/comfyanonymous/ComfyUI/releases
26
+ [github-release-date-shield]: https://img.shields.io/github/release-date/comfyanonymous/ComfyUI?style=flat
27
+ [github-downloads-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/total?style=flat
28
+ [github-downloads-latest-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/latest/total?style=flat&label=downloads%40latest
29
+ [github-downloads-link]: https://github.com/comfyanonymous/ComfyUI/releases
30
+
31
+ ![ComfyUI Screenshot](comfyui_screenshot.png)
32
+ </div>
33
+
34
+ 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:
35
+ ### [ComfyUI Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
36
+
37
+ ### [Installing ComfyUI](#installing)
38
+
39
+ ## Features
40
+ - Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
41
+ - Fully supports SD1.x, SD2.x, [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/), [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/), [SD3](https://comfyanonymous.github.io/ComfyUI_examples/sd3/) and [Stable Audio](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
42
+ - [Flux](https://comfyanonymous.github.io/ComfyUI_examples/flux/)
43
+ - Asynchronous Queue system
44
+ - Many optimizations: Only re-executes the parts of the workflow that changes between executions.
45
+ - Smart memory management: can automatically run models on GPUs with as low as 1GB vram.
46
+ - Works even if you don't have a GPU with: ```--cpu``` (slow)
47
+ - Can load ckpt, safetensors and diffusers models/checkpoints. Standalone VAEs and CLIP models.
48
+ - Embeddings/Textual inversion
49
+ - [Loras (regular, locon and loha)](https://comfyanonymous.github.io/ComfyUI_examples/lora/)
50
+ - [Hypernetworks](https://comfyanonymous.github.io/ComfyUI_examples/hypernetworks/)
51
+ - Loading full workflows (with seeds) from generated PNG, WebP and FLAC files.
52
+ - Saving/Loading workflows as Json files.
53
+ - 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.
54
+ - [Area Composition](https://comfyanonymous.github.io/ComfyUI_examples/area_composition/)
55
+ - [Inpainting](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/) with both regular and inpainting models.
56
+ - [ControlNet and T2I-Adapter](https://comfyanonymous.github.io/ComfyUI_examples/controlnet/)
57
+ - [Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)](https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/)
58
+ - [unCLIP Models](https://comfyanonymous.github.io/ComfyUI_examples/unclip/)
59
+ - [GLIGEN](https://comfyanonymous.github.io/ComfyUI_examples/gligen/)
60
+ - [Model Merging](https://comfyanonymous.github.io/ComfyUI_examples/model_merging/)
61
+ - [LCM models and Loras](https://comfyanonymous.github.io/ComfyUI_examples/lcm/)
62
+ - [SDXL Turbo](https://comfyanonymous.github.io/ComfyUI_examples/sdturbo/)
63
+ - [AuraFlow](https://comfyanonymous.github.io/ComfyUI_examples/aura_flow/)
64
+ - [HunyuanDiT](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_dit/)
65
+ - Latent previews with [TAESD](#how-to-show-high-quality-previews)
66
+ - Starts up very fast.
67
+ - Works fully offline: will never download anything.
68
+ - [Config file](extra_model_paths.yaml.example) to set the search paths for models.
69
+
70
+ Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
71
+
72
+ ## Shortcuts
73
+
74
+ | Keybind | Explanation |
75
+ |------------------------------------|--------------------------------------------------------------------------------------------------------------------|
76
+ | Ctrl + Enter | Queue up current graph for generation |
77
+ | Ctrl + Shift + Enter | Queue up current graph as first for generation |
78
+ | Ctrl + Alt + Enter | Cancel current generation |
79
+ | Ctrl + Z/Ctrl + Y | Undo/Redo |
80
+ | Ctrl + S | Save workflow |
81
+ | Ctrl + O | Load workflow |
82
+ | Ctrl + A | Select all nodes |
83
+ | Alt + C | Collapse/uncollapse selected nodes |
84
+ | Ctrl + M | Mute/unmute selected nodes |
85
+ | Ctrl + B | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
86
+ | Delete/Backspace | Delete selected nodes |
87
+ | Ctrl + Backspace | Delete the current graph |
88
+ | Space | Move the canvas around when held and moving the cursor |
89
+ | Ctrl/Shift + Click | Add clicked node to selection |
90
+ | Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
91
+ | Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
92
+ | Shift + Drag | Move multiple selected nodes at the same time |
93
+ | Ctrl + D | Load default graph |
94
+ | Alt + `+` | Canvas Zoom in |
95
+ | Alt + `-` | Canvas Zoom out |
96
+ | Ctrl + Shift + LMB + Vertical drag | Canvas Zoom in/out |
97
+ | Q | Toggle visibility of the queue |
98
+ | H | Toggle visibility of history |
99
+ | R | Refresh graph |
100
+ | Double-Click LMB | Open node quick search palette |
101
+ | Shift + Drag | Move multiple wires at once |
102
+ | Ctrl + Alt + LMB | Disconnect all wires from clicked slot |
103
+
104
+ Ctrl can also be replaced with Cmd instead for macOS users
105
+
106
+ # Installing
107
+
108
+ ## Windows
109
+
110
+ 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).
111
+
112
+ ### [Direct link to download](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z)
113
+
114
+ 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
115
+
116
+ If you have trouble extracting it, right click the file -> properties -> unblock
117
+
118
+ #### How do I share models between another UI and ComfyUI?
119
+
120
+ 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.
121
+
122
+ ## Jupyter Notebook
123
+
124
+ To run it on services like paperspace, kaggle or colab you can use my [Jupyter Notebook](notebooks/comfyui_colab.ipynb)
125
+
126
+ ## Manual Install (Windows, Linux)
127
+
128
+ Git clone this repo.
129
+
130
+ Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
131
+
132
+ Put your VAE in: models/vae
133
+
134
+
135
+ ### AMD GPUs (Linux only)
136
+ 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:
137
+
138
+ ```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1```
139
+
140
+ This is the command to install the nightly with ROCm 6.2 which might have some performance improvements:
141
+
142
+ ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2```
143
+
144
+ ### NVIDIA
145
+
146
+ Nvidia users should install stable pytorch using this command:
147
+
148
+ ```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124```
149
+
150
+ This is the command to install pytorch nightly instead which might have performance improvements:
151
+
152
+ ```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124```
153
+
154
+ #### Troubleshooting
155
+
156
+ If you get the "Torch not compiled with CUDA enabled" error, uninstall torch with:
157
+
158
+ ```pip uninstall torch```
159
+
160
+ And install it again with the command above.
161
+
162
+ ### Dependencies
163
+
164
+ Install the dependencies by opening your terminal inside the ComfyUI folder and:
165
+
166
+ ```pip install -r requirements.txt```
167
+
168
+ After this you should have everything installed and can proceed to running ComfyUI.
169
+
170
+ ### Others:
171
+
172
+ #### Intel GPUs
173
+
174
+ Intel GPU support is available for all Intel GPUs supported by Intel's Extension for Pytorch (IPEX) with the support requirements listed in the [Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu) page. Choose your platform and method of install and follow the instructions. The steps are as follows:
175
+
176
+ 1. Start by installing the drivers or kernel listed or newer in the Installation page of IPEX linked above for Windows and Linux if needed.
177
+ 1. Follow the instructions to install [Intel's oneAPI Basekit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html) for your platform.
178
+ 1. Install the packages for IPEX using the instructions provided in the Installation page for your platform.
179
+ 1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux and run ComfyUI normally as described above after everything is installed.
180
+
181
+ Additional discussion and help can be found [here](https://github.com/comfyanonymous/ComfyUI/discussions/476).
182
+
183
+ #### Apple Mac silicon
184
+
185
+ You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
186
+
187
+ 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).
188
+ 1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux.
189
+ 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).
190
+ 1. Launch ComfyUI by running `python main.py`
191
+
192
+ > **Note**: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in [ComfyUI manual installation](#manual-install-windows-linux).
193
+
194
+ #### DirectML (AMD Cards on Windows)
195
+
196
+ ```pip install torch-directml``` Then you can launch ComfyUI with: ```python main.py --directml```
197
+
198
+ # Running
199
+
200
+ ```python main.py```
201
+
202
+ ### For AMD cards not officially supported by ROCm
203
+
204
+ Try running it with this command if you have issues:
205
+
206
+ For 6700, 6600 and maybe other RDNA2 or older: ```HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py```
207
+
208
+ For AMD 7600 and maybe other RDNA3 cards: ```HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py```
209
+
210
+ # Notes
211
+
212
+ Only parts of the graph that have an output with all the correct inputs will be executed.
213
+
214
+ 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.
215
+
216
+ Dragging a generated png on the webpage or loading one will give you the full workflow including seeds that were used to create it.
217
+
218
+ 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 \\).
219
+
220
+ 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 \\}.
221
+
222
+ Dynamic prompts also support C-style comments, like `// comment` or `/* comment */`.
223
+
224
+ 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):
225
+
226
+ ```embedding:embedding_filename.pt```
227
+
228
+
229
+ ## How to show high-quality previews?
230
+
231
+ Use ```--preview-method auto``` to enable previews.
232
+
233
+ 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.
234
+
235
+ ## How to use TLS/SSL?
236
+ 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"`
237
+
238
+ Use `--tls-keyfile key.pem --tls-certfile cert.pem` to enable TLS/SSL, the app will now be accessible with `https://...` instead of `http://...`.
239
+
240
+ > 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.
241
+ <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.
242
+
243
+ ## Support and dev channel
244
+
245
+ [Matrix space: #comfyui_space:matrix.org](https://app.element.io/#/room/%23comfyui_space%3Amatrix.org) (it's like discord but open source).
246
+
247
+ See also: [https://www.comfy.org/](https://www.comfy.org/)
248
+
249
+ ## Frontend Development
250
+
251
+ 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.
252
+
253
+ ### Reporting Issues and Requesting Features
254
+
255
+ 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.
256
+
257
+ ### Using the Latest Frontend
258
+
259
+ The new frontend is now the default for ComfyUI. However, please note:
260
+
261
+ 1. The frontend in the main ComfyUI repository is updated weekly.
262
+ 2. Daily releases are available in the separate frontend repository.
263
+
264
+ To use the most up-to-date frontend version:
265
+
266
+ 1. For the latest daily release, launch ComfyUI with this command line argument:
267
+
268
+ ```
269
+ --front-end-version Comfy-Org/ComfyUI_frontend@latest
270
+ ```
271
+
272
+ 2. For a specific version, replace `latest` with the desired version number:
273
+
274
+ ```
275
+ --front-end-version Comfy-Org/[email protected]
276
+ ```
277
+
278
+ 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.
279
+
280
+ ### Accessing the Legacy Frontend
281
+
282
+ If you need to use the legacy frontend for any reason, you can access it using the following command line argument:
283
+
284
+ ```
285
+ --front-end-version Comfy-Org/ComfyUI_legacy_frontend@latest
286
+ ```
287
+
288
+ This will use a snapshot of the legacy frontend preserved in the [ComfyUI Legacy Frontend repository](https://github.com/Comfy-Org/ComfyUI_legacy_frontend).
289
+
290
+ # QA
291
+
292
+ ### Which GPU should I buy for this?
293
+
294
+ [See this page for some recommendations](https://github.com/comfyanonymous/ComfyUI/wiki/Which-GPU-should-I-buy-for-ComfyUI)
295
+
ComfyUI/__pycache__/cuda_malloc.cpython-310.pyc ADDED
Binary file (2.94 kB). View file
 
ComfyUI/__pycache__/cuda_malloc.cpython-312.pyc ADDED
Binary file (4.77 kB). View file
 
ComfyUI/__pycache__/execution.cpython-310.pyc ADDED
Binary file (24.7 kB). View file
 
ComfyUI/__pycache__/execution.cpython-312.pyc ADDED
Binary file (43.1 kB). View file
 
ComfyUI/__pycache__/folder_paths.cpython-310.pyc ADDED
Binary file (9.23 kB). View file
 
ComfyUI/__pycache__/folder_paths.cpython-312.pyc ADDED
Binary file (16.8 kB). View file
 
ComfyUI/__pycache__/latent_preview.cpython-310.pyc ADDED
Binary file (3.89 kB). View file
 
ComfyUI/__pycache__/latent_preview.cpython-312.pyc ADDED
Binary file (5.97 kB). View file
 
ComfyUI/__pycache__/node_helpers.cpython-310.pyc ADDED
Binary file (1.07 kB). View file
 
ComfyUI/__pycache__/node_helpers.cpython-312.pyc ADDED
Binary file (1.64 kB). View file
 
ComfyUI/__pycache__/nodes.cpython-310.pyc ADDED
Binary file (67.1 kB). View file
 
ComfyUI/__pycache__/nodes.cpython-312.pyc ADDED
Binary file (109 kB). View file
 
ComfyUI/__pycache__/server.cpython-310.pyc ADDED
Binary file (24.7 kB). View file
 
ComfyUI/__pycache__/server.cpython-312.pyc ADDED
Binary file (48.9 kB). View file
 
ComfyUI/api_server/__init__.py ADDED
File without changes
ComfyUI/api_server/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (167 Bytes). View file
 
ComfyUI/api_server/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (157 Bytes). View file
 
ComfyUI/api_server/routes/__init__.py ADDED
File without changes
ComfyUI/api_server/routes/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (174 Bytes). View file
 
ComfyUI/api_server/routes/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (164 Bytes). View file