mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Add TE support for Lumina 2 LoRA
This commit is contained in:
parent
cf0b549d48
commit
eaf0826bd7
@ -268,6 +268,9 @@ def model_lora_keys_clip(model, key_map={}):
|
|||||||
|
|
||||||
for k in sdk:
|
for k in sdk:
|
||||||
if k.endswith(".weight"):
|
if k.endswith(".weight"):
|
||||||
|
if k.startswith("gemma2_2b.transformer.model"): #Lumina
|
||||||
|
l_key = k[len("gemma2_2b.transformer.model."):-len(".weight")]
|
||||||
|
key_map["lora_te_{}".format(l_key.replace(".", "_"))] = k
|
||||||
if k.startswith("t5xxl.transformer."):#OneTrainer SD3 and Flux lora
|
if k.startswith("t5xxl.transformer."):#OneTrainer SD3 and Flux lora
|
||||||
l_key = k[len("t5xxl.transformer."):-len(".weight")]
|
l_key = k[len("t5xxl.transformer."):-len(".weight")]
|
||||||
t5_index = 1
|
t5_index = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user