Replies: 3 comments 3 replies
-
On the GUI side it's easier to handle the loras in the prompts (because no need to handle :) ) The other downside of this feature is the non-reproductivable text prompts. The used lora's hashes and names must be stored into exif / png meta data as always do. But if no lora tag in the prompt, it will be "invisible" for the user side at a point. So, if maybe both feature will be implemented? Eg if you add at least one or more lora from parameter, then the lora tags ignored from the prompt. Anyway, I support the idea, but if you implement this on the loras, then need to be implemented on text embeddings too. |
Beta Was this translation helpful? Give feedback.
-
Another problem with the current LoRA implementation is that once a lora is loaded and applied onto the model, it won't get un-applied until the model is fully reloaded, and if |
Beta Was this translation helpful? Give feedback.
-
Another point, I think there is a potential security/privacy issue with online servers. Letting users put arbitraty paths in the payload and parsing it to check if it correspond to a LoRA would at least leak some information about the file system of the server (right now it's possible to access files outside of the |
Beta Was this translation helpful? Give feedback.
-
Right now the prompt is processed for LoRA detection in the internal
generate_image()
function, which is called from the exposedtxt2img()
orimg2img()
functions.https://github.com/leejet/stable-diffusion.cpp/blob/master/stable-diffusion.cpp#L1221-L1230
While I agree that using the stable-diffusion-webui format to load loras from the CLI is nice, I'm not convinced this should be forced at the API level.
Would it complicate things to accept the lora path/multiplier mappings as arguments to
txt2img()
andimg2img()
(and possibly expose theextract_and_remove_lora()
function)?I'm hesitant to start working on implementing it, since this would probably be a breaking change for downstream apps.
What do you think @leejet @fszontagh @piallai ?
Beta Was this translation helpful? Give feedback.
All reactions