From 78bffe9817eb6666b9e31021070f39d098d1f007 Mon Sep 17 00:00:00 2001 From: bmaltais Date: Thu, 2 Mar 2023 15:35:42 -0500 Subject: [PATCH 1/2] Remove locon folder --- locon | 1 - 1 file changed, 1 deletion(-) delete mode 160000 locon diff --git a/locon b/locon deleted file mode 160000 index 143b7b1..0000000 --- a/locon +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 143b7b1e33a4253b13f45526de41df748b97e585 From 482d7834d13c4381bc4e69754f4be7c7834d6f3f Mon Sep 17 00:00:00 2001 From: bmaltais Date: Thu, 2 Mar 2023 17:51:17 -0500 Subject: [PATCH 2/2] Emergency fix --- README.md | 2 ++ dreambooth_gui.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92fea66..57c8eba 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,8 @@ This will store your a backup file with your current locally installed pip packa ## Change History +* 2023/03/02 (v21.1.1): + - Emergency fix for https://github.com/bmaltais/kohya_ss/issues/261 * 2023/03/02 (v21.1.0): - Add LoCon support (https://github.com/KohakuBlueleaf/LoCon.git) to the Dreambooth LoRA tab. This will allow to create a new type of LoRA that include conv layers as part of the LoRA... hence the name LoCon. LoCon will work with the native Auto1111 implementation of LoRA. If you want to use it with the Kohya_ss additionalNetwork you will need to install this other extension... until Kohya_ss support it nativelly: https://github.com/KohakuBlueleaf/a1111-sd-webui-locon * 2023/03/01 (v21.0.1): diff --git a/dreambooth_gui.py b/dreambooth_gui.py index 31efc4c..017e749 100644 --- a/dreambooth_gui.py +++ b/dreambooth_gui.py @@ -211,19 +211,19 @@ def open_configuration( if not file_path == '' and not file_path == None: # load variables from JSON file with open(file_path, 'r') as f: - my_data_db = json.load(f) + my_data = json.load(f) print('Loading config...') # Update values to fix deprecated use_8bit_adam checkbox and set appropriate optimizer if it is set to True my_data = update_optimizer(my_data) else: file_path = original_file_path # In case a file_path was provided and the user decide to cancel the open action - my_data_db = {} + my_data = {} values = [file_path] for key, value in parameters: # Set the value in the dictionary to the corresponding value in `my_data`, or the default value if not found if not key in ['file_path']: - values.append(my_data_db.get(key, value)) + values.append(my_data.get(key, value)) return tuple(values)