mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Support text encoder text_projection in lora.
This commit is contained in:
parent
1e5f0f66be
commit
6533b172c1
@ -200,6 +200,13 @@ def model_lora_keys_clip(model, key_map={}):
|
|||||||
lora_key = "lora_prior_te_text_model_encoder_layers_{}_{}".format(b, LORA_CLIP_MAP[c]) #cascade lora: TODO put lora key prefix in the model config
|
lora_key = "lora_prior_te_text_model_encoder_layers_{}_{}".format(b, LORA_CLIP_MAP[c]) #cascade lora: TODO put lora key prefix in the model config
|
||||||
key_map[lora_key] = k
|
key_map[lora_key] = k
|
||||||
|
|
||||||
|
|
||||||
|
k = "clip_g.text_projection"
|
||||||
|
if k in sdk:
|
||||||
|
key_map["lora_prior_te_text_projection"] = k #cascade lora
|
||||||
|
# key_map["text_encoder.text_projection"] = k #TODO: check if other lora have the text_projection too
|
||||||
|
# key_map["lora_te_text_projection"] = k
|
||||||
|
|
||||||
return key_map
|
return key_map
|
||||||
|
|
||||||
def model_lora_keys_unet(model, key_map={}):
|
def model_lora_keys_unet(model, key_map={}):
|
||||||
|
Loading…
Reference in New Issue
Block a user