Skip to content

Commit 61e316c

Browse files
committed
fix unet adapter name for sdxl
1 parent 94abbc0 commit 61e316c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diffusers/loaders.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,9 @@ def load_lora_weights(
30283028
if not is_correct_format:
30293029
raise ValueError("Invalid LoRA checkpoint.")
30303030

3031-
self.load_lora_into_unet(state_dict, network_alphas=network_alphas, unet=self.unet, _pipeline=self)
3031+
self.load_lora_into_unet(
3032+
state_dict, network_alphas=network_alphas, unet=self.unet, adapter_name=adapter_name, _pipeline=self
3033+
)
30323034
text_encoder_state_dict = {k: v for k, v in state_dict.items() if "text_encoder." in k}
30333035
if len(text_encoder_state_dict) > 0:
30343036
self.load_lora_into_text_encoder(

0 commit comments

Comments
 (0)