AIrjen / OneButtonPrompt

One Button Prompt
GNU General Public License v3.0
875 stars 87 forks source link

Lora/lyco names with spaces are formatted and thus not working #64

Closed kuriot closed 1 year ago

kuriot commented 1 year ago

Hi.

You don't need any lora to check that this problem exist. Just copy this <lora:some lora(With description):0.5> to "Overwrite subject" or any other field which works with user's input. And see how it will be transformed during generation to <lora:some lora (With description) :0.5>.

AIrjen commented 1 year ago

Thank you! Fixed it :) LoRA's and others are no longer "parsed" during the cleaning which caused this issue. They are stored seperately and then moved to the back of the prompt.

kuriot commented 1 year ago

Cool. You're breathtaking!