From 8f5a9a50aa1c934481f08db2225c54a27fd32a94 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 17 Feb 2025 08:12:09 -0700 Subject: [PATCH] Remove duplicate outpaint template (#2602) Co-authored-by: github-actions Co-authored-by: Chenlei Hu --- .../templates/inpain_model_outpainting.json | 2 +- .../templates/yosemite_outpaint_example.json | 360 ------------------ src/constants/coreTemplates.ts | 9 +- src/locales/en/main.json | 3 +- src/locales/fr/main.json | 3 +- src/locales/ja/main.json | 3 +- src/locales/ko/main.json | 3 +- src/locales/ru/main.json | 3 +- src/locales/zh/main.json | 3 +- 9 files changed, 8 insertions(+), 381 deletions(-) delete mode 100644 public/templates/yosemite_outpaint_example.json diff --git a/public/templates/inpain_model_outpainting.json b/public/templates/inpain_model_outpainting.json index 7e08dd6aa8..8f6769ef94 100644 --- a/public/templates/inpain_model_outpainting.json +++ b/public/templates/inpain_model_outpainting.json @@ -311,7 +311,7 @@ "outputs": [], "properties": {}, "widgets_values": [ - "\ud83d\udec8 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/)" + "\ud83d\udec8 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/#outpainting)" ], "color": "#432", "bgcolor": "#653" diff --git a/public/templates/yosemite_outpaint_example.json b/public/templates/yosemite_outpaint_example.json deleted file mode 100644 index 22b23f218e..0000000000 --- a/public/templates/yosemite_outpaint_example.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "last_node_id": 31, - "last_link_id": 87, - "nodes": [ - { - "id": 6, - "type": "CLIPTextEncode", - "pos": [432, 158], - "size": [422.85, 164.31], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 81 - } - ], - "outputs": [ - { - "name": "CONDITIONING", - "type": "CONDITIONING", - "links": [4], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "CLIPTextEncode" - }, - "widgets_values": [ - "outdoors in the yosemite national park mountains nature\n\n\n\n" - ] - }, - { - "id": 7, - "type": "CLIPTextEncode", - "pos": [434, 371], - "size": [425.28, 180.61], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "clip", - "type": "CLIP", - "link": 82 - } - ], - "outputs": [ - { - "name": "CONDITIONING", - "type": "CONDITIONING", - "links": [6], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "CLIPTextEncode" - }, - "widgets_values": ["watermark, text\n"] - }, - { - "id": 8, - "type": "VAEDecode", - "pos": [1422, 387], - "size": [210, 46], - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "samples", - "type": "LATENT", - "link": 42 - }, - { - "name": "vae", - "type": "VAE", - "link": 83 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [22], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "VAEDecode" - }, - "widgets_values": [] - }, - { - "id": 3, - "type": "KSampler", - "pos": [940, 180], - "size": [315, 262], - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "MODEL", - "link": 80 - }, - { - "name": "positive", - "type": "CONDITIONING", - "link": 4 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 6 - }, - { - "name": "latent_image", - "type": "LATENT", - "link": 72 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [42], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "KSampler" - }, - "widgets_values": [ - 152545289528694, - "randomize", - 20, - 8, - "uni_pc_bh2", - "normal", - 1 - ] - }, - { - "id": 29, - "type": "CheckpointLoaderSimple", - "pos": [17, 303], - "size": [315, 98], - "flags": {}, - "order": 0, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "MODEL", - "type": "MODEL", - "links": [80], - "slot_index": 0 - }, - { - "name": "CLIP", - "type": "CLIP", - "links": [81, 82], - "slot_index": 1 - }, - { - "name": "VAE", - "type": "VAE", - "links": [83, 84], - "slot_index": 2 - } - ], - "properties": { - "Node name for S&R": "CheckpointLoaderSimple" - }, - "widgets_values": ["512-inpainting-ema.safetensors"] - }, - { - "id": 20, - "type": "LoadImage", - "pos": [-107, 726], - "size": [344, 346], - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [85], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "links": [], - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "LoadImage" - }, - "widgets_values": ["yosemite_outpaint_example.png", "image"] - }, - { - "id": 30, - "type": "ImagePadForOutpaint", - "pos": [269, 727], - "size": [315, 174], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 85 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "shape": 3, - "links": [87], - "slot_index": 0 - }, - { - "name": "MASK", - "type": "MASK", - "shape": 3, - "links": [86], - "slot_index": 1 - } - ], - "properties": { - "Node name for S&R": "ImagePadForOutpaint" - }, - "widgets_values": [0, 128, 0, 128, 40] - }, - { - "id": 9, - "type": "SaveImage", - "pos": [1671, 384], - "size": [360.55, 441.53], - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 22 - } - ], - "outputs": [], - "properties": {}, - "widgets_values": ["ComfyUI"] - }, - { - "id": 26, - "type": "VAEEncodeForInpaint", - "pos": [617, 720], - "size": [226.8, 98], - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "name": "pixels", - "type": "IMAGE", - "link": 87 - }, - { - "name": "vae", - "type": "VAE", - "link": 84 - }, - { - "name": "mask", - "type": "MASK", - "link": 86 - } - ], - "outputs": [ - { - "name": "LATENT", - "type": "LATENT", - "links": [72], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "VAEEncodeForInpaint" - }, - "widgets_values": [8] - }, - { - "id": 31, - "type": "MarkdownNote", - "pos": [15, 465], - "size": [225, 60], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "\ud83d\udec8 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/#outpainting)" - ], - "color": "#432", - "bgcolor": "#653" - } - ], - "links": [ - [4, 6, 0, 3, 1, "CONDITIONING"], - [6, 7, 0, 3, 2, "CONDITIONING"], - [22, 8, 0, 9, 0, "IMAGE"], - [42, 3, 0, 8, 0, "LATENT"], - [72, 26, 0, 3, 3, "LATENT"], - [80, 29, 0, 3, 0, "MODEL"], - [81, 29, 1, 6, 0, "CLIP"], - [82, 29, 1, 7, 0, "CLIP"], - [83, 29, 2, 8, 1, "VAE"], - [84, 29, 2, 26, 1, "VAE"], - [85, 20, 0, 30, 0, "IMAGE"], - [86, 30, 1, 26, 2, "MASK"], - [87, 30, 0, 26, 0, "IMAGE"] - ], - "groups": [ - { - "id": 1, - "title": "Load image and pad for outpainting", - "bounding": [-120, 600, 1038, 509], - "color": "#3f789e", - "font_size": 24, - "flags": {} - } - ], - "config": {}, - "extra": { - "ds": { - "scale": 0.93, - "offset": [359.29, 119.05] - } - }, - "version": 0.4, - "models": [ - { - "name": "512-inpainting-ema.safetensors", - "url": "https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/resolve/main/512-inpainting-ema.safetensors?download=true", - "directory": "checkpoints" - } - ] -} diff --git a/src/constants/coreTemplates.ts b/src/constants/coreTemplates.ts index bfa6088f5b..a120224793 100644 --- a/src/constants/coreTemplates.ts +++ b/src/constants/coreTemplates.ts @@ -29,19 +29,12 @@ export const CORE_TEMPLATES = [ tutorialUrl: 'https://comfyanonymous.github.io/ComfyUI_examples/inpaint/' }, - { - name: 'yosemite_outpaint_example', - mediaType: 'image', - mediaSubtype: 'png', - tutorialUrl: - 'https://comfyanonymous.github.io/ComfyUI_examples/inpaint/#outpainting' - }, { name: 'inpain_model_outpainting', mediaType: 'image', mediaSubtype: 'png', tutorialUrl: - 'https://comfyanonymous.github.io/ComfyUI_examples/inpaint/' + 'https://comfyanonymous.github.io/ComfyUI_examples/inpaint/#outpainting' }, { name: 'embedding_example', diff --git a/src/locales/en/main.json b/src/locales/en/main.json index 29da5a2c92..b227dff3b6 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -377,8 +377,7 @@ "lora": "Lora", "lora_multiple": "Lora Multiple", "inpaint_example": "Inpaint", - "yosemite_outpaint_example": "Yosemite Outpaint", - "inpain_model_outpainting": "Inpaint Model Outpainting" + "inpain_model_outpainting": "Outpaint" }, "ControlNet": { "controlnet_example": "ControlNet", diff --git a/src/locales/fr/main.json b/src/locales/fr/main.json index b1c48fdeab..2782b5f346 100644 --- a/src/locales/fr/main.json +++ b/src/locales/fr/main.json @@ -775,8 +775,7 @@ "inpain_model_outpainting": "Modèle Inpaint Outpainting", "inpaint_example": "Inpaint", "lora": "Lora", - "lora_multiple": "Lora Multiple", - "yosemite_outpaint_example": "Yosemite Outpaint" + "lora_multiple": "Lora Multiple" }, "ControlNet": { "2_pass_pose_worship": "2 Passes Pose Worship", diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 8150794a1e..013c910d4d 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -775,8 +775,7 @@ "inpain_model_outpainting": "InpaintモデルのOutpainting", "inpaint_example": "Inpaint", "lora": "Lora", - "lora_multiple": "Lora複数", - "yosemite_outpaint_example": "Yosemite Outpaint" + "lora_multiple": "Lora複数" }, "ControlNet": { "2_pass_pose_worship": "2 Pass Pose Worship", diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index 0386f59045..bd52d5eb05 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -775,8 +775,7 @@ "inpain_model_outpainting": "인페인트 모델 아웃페인팅", "inpaint_example": "인페인트", "lora": "로라", - "lora_multiple": "다중 로라", - "yosemite_outpaint_example": "요세미티 아웃페인트 예제" + "lora_multiple": "다중 로라" }, "ControlNet": { "2_pass_pose_worship": "2 패스 경배 포즈", diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index d8c1523c13..b9212b9c7c 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -775,8 +775,7 @@ "inpain_model_outpainting": "Inpaint Model Outpainting", "inpaint_example": "Inpaint", "lora": "Lora", - "lora_multiple": "Lora Multiple", - "yosemite_outpaint_example": "Yosemite Outpaint" + "lora_multiple": "Lora Multiple" }, "ControlNet": { "2_pass_pose_worship": "2 Pass Pose Worship", diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index 327bf266b7..67e2ed5306 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -775,8 +775,7 @@ "inpain_model_outpainting": "Inpaint模型Outpainting", "inpaint_example": "Inpaint", "lora": "Lora", - "lora_multiple": "Lora多个", - "yosemite_outpaint_example": "优胜美地Outpaint" + "lora_multiple": "Lora多个" }, "ControlNet": { "2_pass_pose_worship": "2通道姿势崇拜",