From 69ae22e20b4da2343ca23878dd9c6458a0bbdf30 Mon Sep 17 00:00:00 2001 From: Zyin055 <5003647+Zyin055@users.noreply.github.com> Date: Thu, 31 Aug 2023 14:16:37 -0500 Subject: [PATCH 1/4] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 49c0268..9d3be7d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ Screenshot of config-txt2img.json, which can be opened with the "Open config fil
Click to view Changelog +#### 8/31/2023 +* Updated for Automatic1111 [v1.6.0](https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.6.0) +* Added support for "Refiner" (txt2img_enable-checkbox) and "Switch at" (txt2img_switch_at) components for txt2img and img2img, which are used for SDXL Refiner models. The refiner checkpoint component is not supported. #### 5/15/2023 * The UI no longer needs to be reloaded when creating a new config preset #### 4/29/2023 From 1f020691cbc83a9203f91a193d870b4d2ee8485c Mon Sep 17 00:00:00 2001 From: wywywywy Date: Mon, 4 Sep 2023 23:58:03 +0100 Subject: [PATCH 2/4] fix: broken radio-button in v1.6 (#62) * fix: broken radio-button in v1.6 * add comment --------- Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com> --- scripts/config_presets.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/config_presets.py b/scripts/config_presets.py index 200a571..8995dc6 100644 --- a/scripts/config_presets.py +++ b/scripts/config_presets.py @@ -914,6 +914,15 @@ class Script(scripts.Script): if component_name in index_type_components and type(component_value) == int: current_components[component_name] = component_map[component_name].choices[component_value] + # A1111 1.6.0 changed radio buttons values into tuples. + # For example, for the "img2img_mask_mode" component it changed from: + # ['Inpaint masked', 'Inpaint not masked'] + # to + # [('Inpaint masked', 'Inpaint masked'), ('Inpaint not masked', 'Inpaint not masked')] + # Using a type == tuple check here will ensure compatibility with the older versions. + if type(current_components[component_name]) == tuple: + current_components[component_name] = current_components[component_name][0] + #print("Components after :", current_components) return list(current_components.values()) From 9e6c4d8d40946450eee68f4431af408fb448bb57 Mon Sep 17 00:00:00 2001 From: Zyin055 <5003647+Zyin055@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:42:52 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9d3be7d..d313972 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ Screenshot of config-txt2img.json, which can be opened with the "Open config fil
Click to view Changelog +#### 8/31/2023 +* Fixed config presets that used radio button components not working #### 8/31/2023 * Updated for Automatic1111 [v1.6.0](https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.6.0) * Added support for "Refiner" (txt2img_enable-checkbox) and "Switch at" (txt2img_switch_at) components for txt2img and img2img, which are used for SDXL Refiner models. The refiner checkpoint component is not supported. From 87dd00d336bbca60df9454a9418738994535efd2 Mon Sep 17 00:00:00 2001 From: Zyin055 <5003647+Zyin055@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:43:01 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d313972..fbcf9f8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Screenshot of config-txt2img.json, which can be opened with the "Open config fil
Click to view Changelog -#### 8/31/2023 +#### 9/04/2023 * Fixed config presets that used radio button components not working #### 8/31/2023 * Updated for Automatic1111 [v1.6.0](https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.6.0)