What is the usage of these lora methods ? #9117
-
I'm currently working with LoRA weights and their combinations, but I'm not entirely sure if I fully understand their usage. Could you help clarify a few points?
Questions:
Any insights or examples would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, all that you're asking about usage is in the docs with examples: About your questions:
There's no universal solution for this. It depends a lot on how they were trained, most really good loras trained from experienced trainers don't need anything special to be used in conjunction with other loras if they don't clash in the concepts. But it is always better if you load them with different scales and different blocks if needed, but this is something you'll have to experiment with.
How to set different scales is in the documentation, how to ensure they work as intended doesn't depend on diffusers but the lora training. Overfitted loras need lower scales which is bad, undertrained loras need bigger scales which is also bad, ideally a good lora to work as intended with good training should works with a scale of 1.0
This is pretty straightforward, just load them, unload them and load the new ones. To unload them you'll need to use: pipeline.unload_lora_weights() |
Beta Was this translation helpful? Give feedback.
-
Thank you for the help |
Beta Was this translation helpful? Give feedback.
Hi, all that you're asking about usage is in the docs with examples:
About your questions:
There's no universal solution for this. It depends a lot on how they were trained, most really good loras trained from experienced trainers don't need anything special to be used in conjunction with other loras if they don't clash in the concepts. But it is always better if you load them with different scales and different blocks if needed, but this is something you'll have to experiment with.