Skip to content

Commit 6364379

Browse files
committed
Merge branch 'dev' into sd3
2 parents d151833 + 5253a38 commit 6364379

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
@@ -752,6 +752,8 @@ Not available yet.
752752
[__Change History__](#change-history) is moved to the bottom of the page.
753753
更新履歴は[ページ末尾](#change-history)に移しました。
754754

755+
Latest update: 2025-03-21 (Version 0.9.1)
756+
755757
[日本語版READMEはこちら](./README-ja.md)
756758

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

896898
## Change History
897899

900+
### Mar 21, 2025 / 2025-03-21 Version 0.9.1
901+
902+
- 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)
903+
- 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.
904+
898905
### Jan 17, 2025 / 2025-01-17 Version 0.9.0
899906

900907
- __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)