a2569875 / stable-diffusion-webui-composable-lora

This extension replaces the built-in LoRA forward procedure.
GNU Affero General Public License v3.0
155 stars 14 forks source link

Apply lora only on negative prompt #12

Open ljleb opened 1 year ago

ljleb commented 1 year ago

Hi, I trained a lora network on very ugly images. I want to use this lora only on the uncond epsilon. Is that possible? It does not look like the network activates no matter what setting I use for the "uc" checkboxes when I put <lora:negative:1> in the negative prompt textbox.

ljleb commented 1 year ago

I am aware that I can put a negative weight like this: <lora:negative:-1>. However, this isn't what the network was trained for. I still need to provide a proper negative prompt with this setup, and the network is applied to the positive prompt only instead of the negative prompt only.

ljleb commented 1 year ago

If it could be possible to give a different weight to positive and negative prompt, that would be ideal in fact. Not sure how easy it is to find a good syntax for that though.