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

[Request] Script access API with extra_single_image? #76

Open
GanerCodes opened this issue May 22, 2023 · 2 comments
Open

[Request] Script access API with extra_single_image? #76

GanerCodes opened this issue May 22, 2023 · 2 comments

Comments

@GanerCodes
Copy link

I'm trying to add a remove background step to my workflow, however I can't seem to find anyway to interface with that extension. Theoretically it would look like this:

result = api.extra_single_image(
    image=Image.open("img2.png"),
    script_name="stable-diffusion-webui-rembg",
    script_args=["u2net", False, False, 240, 10, 10])
@mix1009
Copy link
Owner

mix1009 commented May 23, 2023

There is no api parameters for scripts in extra_single_image api call.
Since rembg extension is from AUTOMATIC1111, maybe he will introduce some API?

@GanerCodes
Copy link
Author

GanerCodes commented May 23, 2023

There is no api parameters for scripts in extra_single_image api call.

You could reverse-engineer the client but that would be very tedious and prone to
breaking unfortunately; I had to hack together an API for regular rembg lol. Thanks for the response however!

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