How to use a Hugging Face trained Lora on Auto1111? #7387
Replies: 7 comments 10 replies
-
I looked at your HF account and dont see this repo. A link would probably help. By the looks of it though... youll probably find what youre looking for in those folders that say "checkpoint". Just a guess. Lora can be in a candidates = \
glob.glob(os.path.join(shared.cmd_opts.lora_dir, '**/*.pt'), recursive=True) + \
glob.glob(os.path.join(shared.cmd_opts.lora_dir, '**/*.safetensors'), recursive=True) + \
glob.glob(os.path.join(shared.cmd_opts.lora_dir, '**/*.ckpt'), recursive=True) |
Beta Was this translation helpful? Give feedback.
-
I have just made a small script that converts the key names to ones auto1111 seems to like better.
|
Beta Was this translation helpful? Give feedback.
-
Maybe you can give a try to this TI: https://civitai.com/models/3036/charturner-character-turnaround-helper-for-15-and-21 This LoRa: https://civitai.com/models/7252/charturnerbeta-lora-experimental and/or this Model: https://civitai.com/models/4118/spybgs-toolkit-for-digital-artists |
Beta Was this translation helpful? Give feedback.
-
Found this discussion on guggingface with some additional details: |
Beta Was this translation helpful? Give feedback.
-
I also want to know how to do this. Another question is why diffuser Lora is only 3m while civitai Lora is around 150m? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
https://github.com/harrywang/finetune-sd/blob/main/convert-to-safetensors.py maybe it could work. |
Beta Was this translation helpful? Give feedback.
-
For anyone finding this issue, HF solved this 2 weeks ago by pushing a conversion script exactly for this : https://github.com/huggingface/diffusers/blob/main/scripts/convert_diffusers_sdxl_lora_to_webui.py |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I suspect I need to convert it or something, as there's no .safetensors or .pt file to download.
I know how to use Lora in general, just... can't figure out how to get my lora out of HF and into Auto1111
I've tried downloading that .bin, but the UI doesn't recognize the bin (also, it's quite small, only 3 mb, not sure that's the actual lora?)
I've asked on HF, on Civitai, on the civitai discord and other discords, and nobody seems to have any idea. There's a TON of lora suddenly popping up on Civitai, I figure I'm just missing something.
(yes, i'm trying to get local training of lora going, but I'm having issues with it, unrelated to not knowing how to get my lora out of HF. 😁 )
Beta Was this translation helpful? Give feedback.
All reactions