We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e0740 commit cd730e7Copy full SHA for cd730e7
src/diffusers/loaders/lora_conversion_utils.py
@@ -1974,6 +1974,10 @@ def _convert_non_diffusers_wan_lora_to_diffusers(state_dict):
1974
converted_key = f"condition_embedder.image_embedder.{img_ours}.lora_B.weight"
1975
if original_key in original_state_dict:
1976
converted_state_dict[converted_key] = original_state_dict.pop(original_key)
1977
+ bias_key_theirs = original_key.removesuffix(f".{lora_up_key}.weight") + ".diff_b"
1978
+ if bias_key_theirs in original_state_dict:
1979
+ bias_key = converted_key.removesuffix(".weight") + ".bias"
1980
+ converted_state_dict[bias_key] = original_state_dict.pop(bias_key_theirs)
1981
1982
if len(original_state_dict) > 0:
1983
diff = all(".diff" in k for k in original_state_dict)
0 commit comments