From 108884a3049ca7326fffae4134457c1b98240e69 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sun, 16 Feb 2025 07:39:10 -0700 Subject: [PATCH] Replace "clip" with "text_encoders" in template workflows (#2572) --- browser_tests/assets/missing_models.json | 2 +- browser_tests/dialog.spec.ts | 6 +++--- public/templates/flux_canny_model_example.json | 4 ++-- public/templates/flux_depth_lora_example.json | 4 ++-- public/templates/flux_dev_example.json | 4 ++-- public/templates/flux_fill_inpaint_example.json | 4 ++-- public/templates/flux_fill_outpaint_example.json | 4 ++-- public/templates/flux_redux_model_example.json | 4 ++-- public/templates/hunyuan_video_text_to_video.json | 2 +- public/templates/ltxv_image_to_video.json | 2 +- public/templates/ltxv_text_to_video.json | 2 +- public/templates/mochi_text_to_video_example.json | 2 +- public/templates/stable_audio_example.json | 2 +- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/browser_tests/assets/missing_models.json b/browser_tests/assets/missing_models.json index aece2f53a..5a6a8e5ce 100644 --- a/browser_tests/assets/missing_models.json +++ b/browser_tests/assets/missing_models.json @@ -18,7 +18,7 @@ { "name": "fake_model.safetensors", "url": "http://localhost:8188/api/devtools/fake_model.safetensors", - "directory": "clip" + "directory": "text_encoders" } ], "version": 0.4 diff --git a/browser_tests/dialog.spec.ts b/browser_tests/dialog.spec.ts index 9479a0917..fc9ebb64f 100644 --- a/browser_tests/dialog.spec.ts +++ b/browser_tests/dialog.spec.ts @@ -85,8 +85,8 @@ test.describe('Missing models warning', () => { status: 200, body: JSON.stringify([ { - name: 'clip', - folders: ['ComfyUI/models/clip'] + name: 'text_encoders', + folders: ['ComfyUI/models/text_encoders'] } ]) } @@ -109,7 +109,7 @@ test.describe('Missing models warning', () => { ]) } comfyPage.page.route( - '**/api/experiment/models/clip', + '**/api/experiment/models/text_encoders', (route) => route.fulfill(clipModelsRes), { times: 1 } ) diff --git a/public/templates/flux_canny_model_example.json b/public/templates/flux_canny_model_example.json index 983d617d6..e0357904f 100644 --- a/public/templates/flux_canny_model_example.json +++ b/public/templates/flux_canny_model_example.json @@ -453,7 +453,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-canny-dev-lora.safetensors", @@ -478,7 +478,7 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" } ] } diff --git a/public/templates/flux_depth_lora_example.json b/public/templates/flux_depth_lora_example.json index d6416a12a..60eea40dc 100644 --- a/public/templates/flux_depth_lora_example.json +++ b/public/templates/flux_depth_lora_example.json @@ -428,7 +428,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-dev-fp8.safetensors", @@ -448,7 +448,7 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-depth-dev-lora.safetensors", diff --git a/public/templates/flux_dev_example.json b/public/templates/flux_dev_example.json index 6c9ae0bb0..902763abc 100644 --- a/public/templates/flux_dev_example.json +++ b/public/templates/flux_dev_example.json @@ -750,12 +750,12 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "ae.safetensors", diff --git a/public/templates/flux_fill_inpaint_example.json b/public/templates/flux_fill_inpaint_example.json index 78eb8b943..c087eae0a 100644 --- a/public/templates/flux_fill_inpaint_example.json +++ b/public/templates/flux_fill_inpaint_example.json @@ -437,12 +437,12 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-fill-dev.safetensors", diff --git a/public/templates/flux_fill_outpaint_example.json b/public/templates/flux_fill_outpaint_example.json index 55201a5bb..5381f55b6 100644 --- a/public/templates/flux_fill_outpaint_example.json +++ b/public/templates/flux_fill_outpaint_example.json @@ -470,12 +470,12 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-fill-dev.safetensors", diff --git a/public/templates/flux_redux_model_example.json b/public/templates/flux_redux_model_example.json index 2e2ee2712..eba709e3f 100644 --- a/public/templates/flux_redux_model_example.json +++ b/public/templates/flux_redux_model_example.json @@ -920,7 +920,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "flux1-dev-fp8.safetensors", @@ -950,7 +950,7 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" } ] } diff --git a/public/templates/hunyuan_video_text_to_video.json b/public/templates/hunyuan_video_text_to_video.json index 61834b8a6..5531c47da 100644 --- a/public/templates/hunyuan_video_text_to_video.json +++ b/public/templates/hunyuan_video_text_to_video.json @@ -542,7 +542,7 @@ { "name": "clip_l.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "hunyuan_video_t2v_720p_bf16.safetensors", diff --git a/public/templates/ltxv_image_to_video.json b/public/templates/ltxv_image_to_video.json index 1f2a9d645..7a39be943 100644 --- a/public/templates/ltxv_image_to_video.json +++ b/public/templates/ltxv_image_to_video.json @@ -471,7 +471,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "ltx-video-2b-v0.9.safetensors", diff --git a/public/templates/ltxv_text_to_video.json b/public/templates/ltxv_text_to_video.json index f42bd22eb..78953c08d 100644 --- a/public/templates/ltxv_text_to_video.json +++ b/public/templates/ltxv_text_to_video.json @@ -408,7 +408,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "ltx-video-2b-v0.9.safetensors", diff --git a/public/templates/mochi_text_to_video_example.json b/public/templates/mochi_text_to_video_example.json index 3304a69c1..6c3c4b06e 100644 --- a/public/templates/mochi_text_to_video_example.json +++ b/public/templates/mochi_text_to_video_example.json @@ -297,7 +297,7 @@ { "name": "t5xxl_fp16.safetensors", "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true", - "directory": "clip" + "directory": "text_encoders" }, { "name": "mochi_preview_bf16.safetensors", diff --git a/public/templates/stable_audio_example.json b/public/templates/stable_audio_example.json index dbbfa8b23..7b32166a5 100644 --- a/public/templates/stable_audio_example.json +++ b/public/templates/stable_audio_example.json @@ -291,7 +291,7 @@ { "name": "t5_base.safetensors", "url": "https://huggingface.co/google-t5/t5-base/resolve/main/model.safetensors", - "directory": "clip" + "directory": "text_encoders" }, { "name": "stable_audio_open_1.0.safetensors",