Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yiouyou opened this issue Mar 16, 2023 · 1 comment
Open

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

yiouyou opened this issue Mar 16, 2023 · 1 comment

Comments

@yiouyou
Copy link

yiouyou commented Mar 16, 2023

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
Copy link

Chaest commented Jul 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants