The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Make it more clear the recommended way to update the standalone build.
comfyanonymous6d44cf74e39d
diff --git a/.ci/nightly/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.bat b/.ci/nightly/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.batnew file mode 100755index 000000000..d58e3341e--- /dev/null+++ b/.ci/nightly/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.bat@@ -0,0 +1,3 @@+..\..\python_embeded\python.exe ..\update.py ..\..\ComfyUI\+..\..\python_embeded\python.exe -s -m pip install --upgrade --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 -r ../../ComfyUI/requirements.txt pygit2+pausediff --git a/.ci/nightly/update_windows/update_all.bat b/.ci/nightly/update_windows/update_all.batdeleted file mode 100755index c5e0c6be7..000000000--- a/.ci/nightly/update_windows/update_all.bat+++ /dev/null@@ -1,3 +0,0 @@-..\python_embeded\python.exe .\update.py ..\ComfyUI\-..\python_embeded\python.exe -s -m pip install --upgrade --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 -r ../ComfyUI/requirements.txt pygit2-pausediff --git a/.ci/nightly/update_windows/update_comfyui_only.bat b/.ci/nightly/update_windows/update_comfyui.batsimilarity index 100%rename from .ci/nightly/update_windows/update_comfyui_only.batrename to .ci/nightly/update_windows/update_comfyui.batdiff --git a/.ci/nightly/windows_base_files/README_VERY_IMPORTANT.txt b/.ci/nightly/windows_base_files/README_VERY_IMPORTANT.txtindex 4c6a20a7a..7066f91bf 100755--- a/.ci/nightly/windows_base_files/README_VERY_IMPORTANT.txt+++ b/.ci/nightly/windows_base_files/README_VERY_IMPORTANT.txt@@ -19,8 +19,9 @@ You can download the stable diffusion 1.5 one from: https://huggingface.co/runwaRECOMMENDED WAY TO UPDATE:-To update only the ComfyUI code: update\update_comfyui_only.bat+To update the ComfyUI code: update\update_comfyui.bat-To update ComfyUI with the python dependencies (ONLY USE IF YOU NEED TO UPDATE THE PYTHON PACKAGES): update\update_all.bat+To update ComfyUI with the python dependencies:+update\ONLY_RUN_THIS_IF_YOU_HAVE_TO\update_comfyui_and_python_dependencies.batdiff --git a/.ci/setup_windows_zip.ps1 b/.ci/setup_windows_zip.ps1index 4bd2f0b4a..6b38f498b 100755--- a/.ci/setup_windows_zip.ps1+++ b/.ci/setup_windows_zip.ps1@@ -16,8 +16,8 @@ mv ComfyUI_copy ComfyUI_windows_portable/ComfyUIcd ComfyUI_windows_portablemkdir update-cp ComfyUI/.ci/update_windows/* ./update/-cp ComfyUI/.ci/windows_base_files/* ./+cp -r ComfyUI/.ci/update_windows/* ./update/+cp -r ComfyUI/.ci/windows_base_files/* ./cd ..diff --git a/.ci/setup_windows_zip_nightly_pytorch.ps1 b/.ci/setup_windows_zip_nightly_pytorch.ps1index b4d5633a1..31721e5f6 100755--- a/.ci/setup_windows_zip_nightly_pytorch.ps1+++ b/.ci/setup_windows_zip_nightly_pytorch.ps1@@ -18,8 +18,8 @@ mv ComfyUI_copy ComfyUI_windows_portable_nightly_pytorch/ComfyUIcd ComfyUI_windows_portable_nightly_pytorchmkdir update-cp ComfyUI/.ci/nightly/update_windows/* ./update/-cp ComfyUI/.ci/nightly/windows_base_files/* ./+cp -r ComfyUI/.ci/nightly/update_windows/* ./update/+cp -r ComfyUI/.ci/nightly/windows_base_files/* ./cd ..diff --git a/.ci/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.bat b/.ci/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.batnew file mode 100755index 000000000..514621935--- /dev/null+++ b/.ci/update_windows/ONLY_RUN_THIS_IF_YOU_HAVE_TO/update_comfyui_and_python_dependencies.bat@@ -0,0 +1,3 @@+..\..\python_embeded\python.exe ..\update.py ..\..\ComfyUI\+..\..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 xformers -r ../../ComfyUI/requirements.txt pygit2+pausediff --git a/.ci/update_windows/update_all.bat b/.ci/update_windows/update_all.batdeleted file mode 100755index b7308550d..000000000--- a/.ci/update_windows/update_all.bat+++ /dev/null@@ -1,3 +0,0 @@-..\python_embeded\python.exe .\update.py ..\ComfyUI\-..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 xformers -r ../ComfyUI/requirements.txt pygit2-pausediff --git a/.ci/update_windows/update_comfyui_only.bat b/.ci/update_windows/update_comfyui.batsimilarity index 100%rename from .ci/update_windows/update_comfyui_only.batrename to .ci/update_windows/update_comfyui.batdiff --git a/.ci/windows_base_files/README_VERY_IMPORTANT.txt b/.ci/windows_base_files/README_VERY_IMPORTANT.txtindex 69520db98..143ee462f 100755--- a/.ci/windows_base_files/README_VERY_IMPORTANT.txt+++ b/.ci/windows_base_files/README_VERY_IMPORTANT.txt@@ -18,8 +18,10 @@ You can download the stable diffusion 1.5 one from: https://huggingface.co/runwaRECOMMENDED WAY TO UPDATE:-To update only the ComfyUI code: update\update_comfyui_only.bat+To update the ComfyUI code: update\update_comfyui.bat-To update ComfyUI with the python dependencies (ONLY USE IF YOU NEED TO UPDATE THE PYTHON PACKAGES): update\update_all.bat+To update ComfyUI with the python dependencies:+update\ONLY_RUN_THIS_IF_YOU_HAVE_TO\update_comfyui_and_python_dependencies.bat+diff --git a/nodes.py b/nodes.pyindex 650d7f65d..f956eaa6e 100644--- a/nodes.py+++ b/nodes.py@@ -811,7 +811,7 @@ class SaveImage:if not os.path.exists(self.output_dir):os.makedirs(self.output_dir)-+paths = list()for image in images:i = 255. * image.cpu().numpy()@@ -835,11 +835,11 @@ class PreviewImage(SaveImage):@classmethoddef INPUT_TYPES(s):- return {"required":+ return {"required":{"images": ("IMAGE", ), },"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},}-+class LoadImage:input_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input")@classmethod