opparco / stable-diffusion-webui-composable-lora

This extension replaces the built-in LoRA forward procedure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way to enable the composable lora through API call?

yiouyou opened this issue · comments

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!

commented

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]
        }
    }
}