Closed bssrdf closed 3 months ago
My immediate thought looking at your output is that this is a tensor name conversion problem, SDXL LoRAs should be able to modify the text encoders but usually the prefix appears as "te2" or "te1"". I would try adding "text_encoder_2" and "text_encoder" to the convert_sdxl_lora_name function and see if that fixes your problem.
My immediate thought looking at your output is that this is a tensor name conversion problem, SDXL LoRAs should be able to modify the text encoders but usually the prefix appears as "te2" or "te1"". I would try adding "text_encoder_2" and "text_encoder" to the convert_sdxl_lora_name function and see if that fixes your problem.
@grauho , yes, it is a SDXL LoRA name conversion problem. With current version of diffusers, text encoder LoRA's start with text_encoder
and text_encoder_2
. Thanks for helping with this issue.
@bssrdf, Sure thing, so it's working for you now?
My immediate thought looking at your output is that this is a tensor name conversion problem, SDXL LoRAs should be able to modify the text encoders but usually the prefix appears as "te2" or "te1"". I would try adding "text_encoder_2" and "text_encoder" to the convert_sdxl_lora_name function and see if that fixes your problem.
@grauho , yes, it is a SDXL LoRA name conversion problem. With current version of diffusers, text encoder LoRA's start with text_encoder" and "text_encoder_2"
@bssrdf, Sure thing, so it's working for you now?
No, I'll wait for your fix.
My immediate thought looking at your output is that this is a tensor name conversion problem, SDXL LoRAs should be able to modify the text encoders but usually the prefix appears as "te2" or "te1"". I would try adding "text_encoder_2" and "text_encoder" to the convert_sdxl_lora_name function and see if that fixes your problem.
@grauho , yes, it is a SDXL LoRA name conversion problem. With current version of diffusers, text encoder LoRA's start with text_encoder" and "text_encoder_2"
@bssrdf, Sure thing, so it's working for you now?
No, I'll wait for your fix.
You're welcome to try the test I described, otherwise you'll be waiting a while as I do not have a LoRA with this problem to test against.
My immediate thought looking at your output is that this is a tensor name conversion problem, SDXL LoRAs should be able to modify the text encoders but usually the prefix appears as "te2" or "te1"". I would try adding "text_encoder_2" and "text_encoder" to the convert_sdxl_lora_name function and see if that fixes your problem.
@grauho , yes, it is a SDXL LoRA name conversion problem. With current version of diffusers, text encoder LoRA's start with text_encoder" and "text_encoder_2"
@bssrdf, Sure thing, so it's working for you now?
No, I'll wait for your fix.
You're welcome to try the test I described, otherwise you'll be waiting a while as I do not have a LoRA with this problem to test against.
@grauho, I followed your idea using convert_sdxl_lora_name
to do the proper conversion. Now all LoRA (text encoder and unet) are working. I'll submit a PR later. Thanks for the help.
Hi, I trained a SDXL lora with diffuser's --train_text_encoder option. When loaded, only unet lora's got applied and all text encoder ones are skipped.
Has anyone experienced this problem?