opparco / stable-diffusion-webui-composable-lora

This extension replaces the built-in LoRA forward procedure.
MIT License
480 stars 71 forks source link

Any way to enable the composable lora through API call? #11

Open yiouyou opened 1 year ago

yiouyou commented 1 year ago

I'm using automatic1111 API to call txt2img/img2img process and would like to take the advantage of composable lora extension. But I have no idea how to enable the extension through API.

Need some help, Thanks a lot!

Chaest commented 1 year ago

If my understanding is correct, you should be able to use it as by adding to the 'alwaysonscripts' key in the payload: {"Composable Lora": {"args":[\<bool>, \<bool>, \<bool>]}}

For instance, if you only want the composable lora option like I do, you'd end up with:

{
    ...
    "alwaysonscripts": {
        ...
        "Composable Lora": {
            "args": [true, false, false]
        }
    }
}