You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shows that if there are no matching keys in text_encoder_state_dict, text_encoder_state_dict, text_encoder_2_state_dict, there is no warning raised, the method simply does NOTHING.
When looking at state_dict of loaded LoRA, it shows that keys are NOT in the expected format - they need remapping.
For example: dict_keys(['lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.alpha', 'lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.lora_down.weight', 'lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.lora_up.weight', 'lora_unet_joint_blocks_0_context_block_attn_proj.alpha' ...])
Below are download links for some of the popular LoRAs for SD35, all experience same behavior:
SD3.x pipeline does implement
SD3LoraLoaderMixin
and as suchload_lora_weights
on SD3.x does "work".However, attempting to load any of the most popular LoRAs results in silent failure:
load is successful without any warnings, but loads ZERO keys.
Looking at implementation at:
diffusers/src/diffusers/loaders/lora_pipeline.py
Line 1214 in 345907f
Shows that if there are no matching keys in
text_encoder_state_dict
,text_encoder_state_dict
,text_encoder_2_state_dict
, there is no warning raised, the method simply does NOTHING.When looking at
state_dict
of loaded LoRA, it shows that keys are NOT in the expected format - they need remapping.For example:
dict_keys(['lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.alpha', 'lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.lora_down.weight', 'lora_unet_joint_blocks_0_context_block_adaLN_modulation_1.lora_up.weight', 'lora_unet_joint_blocks_0_context_block_attn_proj.alpha' ...])
Below are download links for some of the popular LoRAs for SD35, all experience same behavior:
CC @yiyixuxu @sayakpaul @DN6 @asomoza
CC @AI-Casanova
The text was updated successfully, but these errors were encountered: