From ec28cd91363a4de6c0e7a968aba61fd035a550b9 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" <4000772+mcmonkey4eva@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:48:48 -0700 Subject: [PATCH] swap legacy sdv15 link (#4682) * swap legacy sdv15 link * swap v15 ckpt examples to safetensors * link the fp16 copy of the model by default --- .ci/windows_base_files/README_VERY_IMPORTANT.txt | 2 +- notebooks/comfyui_colab.ipynb | 2 +- script_examples/basic_api_example.py | 2 +- script_examples/websockets_api_example.py | 2 +- script_examples/websockets_api_example_ws_images.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/windows_base_files/README_VERY_IMPORTANT.txt b/.ci/windows_base_files/README_VERY_IMPORTANT.txt index 0216658d..d46acbcb 100755 --- a/.ci/windows_base_files/README_VERY_IMPORTANT.txt +++ b/.ci/windows_base_files/README_VERY_IMPORTANT.txt @@ -14,7 +14,7 @@ run_cpu.bat IF YOU GET A RED ERROR IN THE UI MAKE SURE YOU HAVE A MODEL/CHECKPOINT IN: ComfyUI\models\checkpoints -You can download the stable diffusion 1.5 one from: https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.ckpt +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 RECOMMENDED WAY TO UPDATE: diff --git a/notebooks/comfyui_colab.ipynb b/notebooks/comfyui_colab.ipynb index ec83265b..b1ed4ac9 100644 --- a/notebooks/comfyui_colab.ipynb +++ b/notebooks/comfyui_colab.ipynb @@ -79,7 +79,7 @@ "#!wget -c https://huggingface.co/comfyanonymous/clip_vision_g/resolve/main/clip_vision_g.safetensors -P ./models/clip_vision/\n", "\n", "# SD1.5\n", - "!wget -c https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt -P ./models/checkpoints/\n", + "!wget -c https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors -P ./models/checkpoints/\n", "\n", "# SD2\n", "#!wget -c https://huggingface.co/stabilityai/stable-diffusion-2-1-base/resolve/main/v2-1_512-ema-pruned.safetensors -P ./models/checkpoints/\n", diff --git a/script_examples/basic_api_example.py b/script_examples/basic_api_example.py index 242d3175..bc8ad713 100644 --- a/script_examples/basic_api_example.py +++ b/script_examples/basic_api_example.py @@ -43,7 +43,7 @@ prompt_text = """ "4": { "class_type": "CheckpointLoaderSimple", "inputs": { - "ckpt_name": "v1-5-pruned-emaonly.ckpt" + "ckpt_name": "v1-5-pruned-emaonly.safetensors" } }, "5": { diff --git a/script_examples/websockets_api_example.py b/script_examples/websockets_api_example.py index 04c9fa21..62afc869 100644 --- a/script_examples/websockets_api_example.py +++ b/script_examples/websockets_api_example.py @@ -84,7 +84,7 @@ prompt_text = """ "4": { "class_type": "CheckpointLoaderSimple", "inputs": { - "ckpt_name": "v1-5-pruned-emaonly.ckpt" + "ckpt_name": "v1-5-pruned-emaonly.safetensors" } }, "5": { diff --git a/script_examples/websockets_api_example_ws_images.py b/script_examples/websockets_api_example_ws_images.py index 73748862..b37d9893 100644 --- a/script_examples/websockets_api_example_ws_images.py +++ b/script_examples/websockets_api_example_ws_images.py @@ -81,7 +81,7 @@ prompt_text = """ "4": { "class_type": "CheckpointLoaderSimple", "inputs": { - "ckpt_name": "v1-5-pruned-emaonly.ckpt" + "ckpt_name": "v1-5-pruned-emaonly.safetensors" } }, "5": {