1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Quick-Fix for #7352 block-lora (#7523)

Fixed important typo
This commit is contained in:
UmerHA
2024-03-30 02:12:28 +01:00
committed by GitHub
parent 0302446819
commit 77103d71ca

View File

@@ -1111,7 +1111,7 @@ class LoraLoaderMixin:
# warn if adapter doesn't have parts specified by adapter_weights
for part_weight, part_name in zip(
[unet_lora_weight, text_encoder_lora_weight, text_encoder_2_lora_weight],
["uent", "text_encoder", "text_encoder_2"],
["unet", "text_encoder", "text_encoder_2"],
):
if part_weight is not None and part_name not in invert_list_adapters[adapter_name]:
logger.warning(