From 49d898f6c78ccec5a7ce132a36b08765fdb01e53 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Mon, 1 Jul 2024 19:50:34 +0200 Subject: [PATCH] wip: set default_overwrite_switch for pony preset synthetic refiner introduces artifacts, overriding refiner switch disables all refiners (never switches to them) discussion in https://github.com/lllyasviel/Fooocus/discussions/3217#discussioncomment-9928035 --- modules/config.py | 1 + presets/anime.json | 2 ++ presets/default.json | 2 ++ presets/lcm.json | 2 ++ presets/playground_v2.5.json | 1 + presets/pony_v6.json | 4 ++-- presets/realistic.json | 2 ++ presets/sai.json | 2 ++ 8 files changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/config.py b/modules/config.py index 8ab5edb8..cbc919ec 100644 --- a/modules/config.py +++ b/modules/config.py @@ -549,6 +549,7 @@ possible_preset_keys = { "default_sampler": "sampler", "default_scheduler": "scheduler", "default_overwrite_step": "steps", + "default_overwrite_switch": "overwrite_switch", "default_performance": "performance", "default_image_number": "image_number", "default_prompt": "prompt", diff --git a/presets/anime.json b/presets/anime.json index 78607edb..7bcaad89 100644 --- a/presets/anime.json +++ b/presets/anime.json @@ -42,6 +42,8 @@ "Fooocus Masterpiece" ], "default_aspect_ratio": "896*1152", + "default_overwrite_step": -1, + "default_overwrite_switch": -1, "checkpoint_downloads": { "animaPencilXL_v310.safetensors": "https://huggingface.co/mashb1t/fav_models/resolve/main/fav/animaPencilXL_v310.safetensors" }, diff --git a/presets/default.json b/presets/default.json index d02bb8a4..0a1ad863 100644 --- a/presets/default.json +++ b/presets/default.json @@ -42,6 +42,8 @@ "Fooocus Sharp" ], "default_aspect_ratio": "1152*896", + "default_overwrite_step": -1, + "default_overwrite_switch": -1, "checkpoint_downloads": { "juggernautXL_v8Rundiffusion.safetensors": "https://huggingface.co/lllyasviel/fav_models/resolve/main/fav/juggernautXL_v8Rundiffusion.safetensors" }, diff --git a/presets/lcm.json b/presets/lcm.json index 6713fdd5..cca37956 100644 --- a/presets/lcm.json +++ b/presets/lcm.json @@ -42,6 +42,8 @@ "Fooocus Sharp" ], "default_aspect_ratio": "1152*896", + "default_overwrite_step": -1, + "default_overwrite_switch": -1, "checkpoint_downloads": { "juggernautXL_v8Rundiffusion.safetensors": "https://huggingface.co/lllyasviel/fav_models/resolve/main/fav/juggernautXL_v8Rundiffusion.safetensors" }, diff --git a/presets/playground_v2.5.json b/presets/playground_v2.5.json index f4afaa9a..34fa29b6 100644 --- a/presets/playground_v2.5.json +++ b/presets/playground_v2.5.json @@ -41,6 +41,7 @@ ], "default_aspect_ratio": "1024*1024", "default_overwrite_step": -1, + "default_overwrite_switch": -1, "default_inpaint_method": "Improve Detail (face, hand, eyes, etc.)", "checkpoint_downloads": { "playground-v2.5-1024px-aesthetic.fp16.safetensors": "https://huggingface.co/mashb1t/fav_models/resolve/main/fav/playground-v2.5-1024px-aesthetic.fp16.safetensors" diff --git a/presets/pony_v6.json b/presets/pony_v6.json index 8a3a962a..b5230f89 100644 --- a/presets/pony_v6.json +++ b/presets/pony_v6.json @@ -1,7 +1,7 @@ { "default_model": "ponyDiffusionV6XL.safetensors", "default_refiner": "None", - "default_refiner_switch": 0.5, + "default_refiner_switch": 1, "default_vae": "ponyDiffusionV6XL_vae.safetensors", "default_loras": [ [ @@ -42,7 +42,7 @@ ], "default_aspect_ratio": "896*1152", "default_overwrite_step": -1, - "default_inpaint_method": "Improve Detail (face, hand, eyes, etc.)", + "default_overwrite_switch": 999, "checkpoint_downloads": { "ponyDiffusionV6XL.safetensors": "https://huggingface.co/mashb1t/fav_models/resolve/main/fav/ponyDiffusionV6XL.safetensors" }, diff --git a/presets/realistic.json b/presets/realistic.json index 6db6d0b7..33d66702 100644 --- a/presets/realistic.json +++ b/presets/realistic.json @@ -42,6 +42,8 @@ "Fooocus Negative" ], "default_aspect_ratio": "896*1152", + "default_overwrite_step": -1, + "default_overwrite_switch": -1, "checkpoint_downloads": { "realisticStockPhoto_v20.safetensors": "https://huggingface.co/lllyasviel/fav_models/resolve/main/fav/realisticStockPhoto_v20.safetensors" }, diff --git a/presets/sai.json b/presets/sai.json index 918028f3..9bfed082 100644 --- a/presets/sai.json +++ b/presets/sai.json @@ -41,6 +41,8 @@ "Fooocus Cinematic" ], "default_aspect_ratio": "1152*896", + "default_overwrite_step": -1, + "default_overwrite_switch": -1, "checkpoint_downloads": { "sd_xl_base_1.0_0.9vae.safetensors": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors", "sd_xl_refiner_1.0_0.9vae.safetensors": "https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors"