Skip to content

Commit 5253a38

Browse files
committed
Merge branch 'main' into dev
2 parents b286304 + 8f4ee8f commit 5253a38

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ This repository contains training, generation and utility scripts for Stable Dif
33
[__Change History__](#change-history) is moved to the bottom of the page.
44
更新履歴は[ページ末尾](#change-history)に移しました。
55

6+
Latest update: 2025-03-21 (Version 0.9.1)
7+
68
[日本語版READMEはこちら](./README-ja.md)
79

810
The development version is in the `dev` branch. Please check the dev branch for the latest changes.
@@ -146,6 +148,11 @@ The majority of scripts is licensed under ASL 2.0 (including codes from Diffuser
146148

147149
## Change History
148150

151+
### Mar 21, 2025 / 2025-03-21 Version 0.9.1
152+
153+
- Fixed a bug where some of LoRA modules for CLIP Text Encoder were not trained. Thank you Nekotekina for PR [#1964](https://github.com/kohya-ss/sd-scripts/pull/1964)
154+
- The LoRA modules for CLIP Text Encoder are now 264 modules, which is the same as before. Only 88 modules were trained in the previous version.
155+
149156
### Jan 17, 2025 / 2025-01-17 Version 0.9.0
150157

151158
- __important__ The dependent libraries are updated. Please see [Upgrade](#upgrade) and update the libraries.

networks/dylora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def create_network_from_weights(multiplier, file, vae, text_encoder, unet, weigh
268268
class DyLoRANetwork(torch.nn.Module):
269269
UNET_TARGET_REPLACE_MODULE = ["Transformer2DModel"]
270270
UNET_TARGET_REPLACE_MODULE_CONV2D_3X3 = ["ResnetBlock2D", "Downsample2D", "Upsample2D"]
271-
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPMLP"]
271+
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPSdpaAttention", "CLIPMLP"]
272272
LORA_PREFIX_UNET = "lora_unet"
273273
LORA_PREFIX_TEXT_ENCODER = "lora_te"
274274

networks/lora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ class LoRANetwork(torch.nn.Module):
866866

867867
UNET_TARGET_REPLACE_MODULE = ["Transformer2DModel"]
868868
UNET_TARGET_REPLACE_MODULE_CONV2D_3X3 = ["ResnetBlock2D", "Downsample2D", "Upsample2D"]
869-
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPMLP"]
869+
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPSdpaAttention", "CLIPMLP"]
870870
LORA_PREFIX_UNET = "lora_unet"
871871
LORA_PREFIX_TEXT_ENCODER = "lora_te"
872872

networks/lora_diffusers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def merge_lora_weights(pipe, weights_sd: Dict, multiplier: float = 1.0):
278278
class LoRANetwork(torch.nn.Module):
279279
UNET_TARGET_REPLACE_MODULE = ["Transformer2DModel"]
280280
UNET_TARGET_REPLACE_MODULE_CONV2D_3X3 = ["ResnetBlock2D", "Downsample2D", "Upsample2D"]
281-
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPMLP"]
281+
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPSdpaAttention", "CLIPMLP"]
282282
LORA_PREFIX_UNET = "lora_unet"
283283
LORA_PREFIX_TEXT_ENCODER = "lora_te"
284284

networks/lora_fa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ class LoRANetwork(torch.nn.Module):
755755

756756
UNET_TARGET_REPLACE_MODULE = ["Transformer2DModel"]
757757
UNET_TARGET_REPLACE_MODULE_CONV2D_3X3 = ["ResnetBlock2D", "Downsample2D", "Upsample2D"]
758-
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPMLP"]
758+
TEXT_ENCODER_TARGET_REPLACE_MODULE = ["CLIPAttention", "CLIPSdpaAttention", "CLIPMLP"]
759759
LORA_PREFIX_UNET = "lora_unet"
760760
LORA_PREFIX_TEXT_ENCODER = "lora_te"
761761

0 commit comments

Comments
 (0)