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

SD_API UI additions for SD workflow #1006

Closed
wants to merge 8 commits into from
Closed

SD_API UI additions for SD workflow #1006

wants to merge 8 commits into from

Conversation

if-ai
Copy link

@if-ai if-ai commented Apr 10, 2023

Updated models, samplers, upscaler hi res fix, denoise strength, minimal changes to the code will add a way to select VAEs and loRas if I find where to get them from the SD_api #batch size is working but I commented out because is duplicating the images, maybe some bug on the seed parameters. https://youtu.be/kAUQ04iNfjI

if-ai and others added 5 commits April 10, 2023 15:19
updated the ui to select models hr fix and now is easier to set things directly on Ooga I need to see those vram management, the thing to down_res the preview in chat is not working for me I try fixing it but Idk  will add a way to select vaes and loras if I find where to get them from the api
Okay It was the VRAM if statement indentation causing both not to work is fix now so I think it works great nest is adding those Vaes and loras
I forgot to place the buttons like it was originally and added the button that works for me on SD workflow I think it was removed from the old cai.chat
Made a separate button to apply the model it saves time not loading the same model each time you regenerate. I will put all these persistent settings in the same compartment within the row.
I don't know if I need to update something, but the VRAM management can't load and unload the checkpoints for me. Also, the Resize preview is not working :(
@if-ai if-ai changed the title script.py SD_API UI additions for SD workflow Apr 11, 2023
@if-ai
Copy link
Author

if-ai commented Apr 11, 2023

I changed the name so is easier to see I made a video working with the SD_api https://youtu.be/wenmSXqUDPo I love this thing

}

print(f'Prompting the image generator via the API on {params["address"]}...')
response = requests.post(url=f'{params["address"]}/sdapi/v1/txt2img', json=payload)
response.raise_for_status()
r = response.json()

# This is broken for me please check where I messed up. I am sorry.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wh... what?

sd_model_checkpoint = gr.Dropdown(label="model", choices=sd_models)
sampler_index = gr.Dropdown(label="sampler", choices=samplers)

with gr.Accordion("Prompt settigns", open=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo here on settings and above (325) on Apply

changed sampler name fixed the apply typo
@if-ai if-ai requested a review from mcmonkey4eva April 12, 2023 16:27
@if-ai if-ai marked this pull request as draft April 12, 2023 16:27
only batch size commented out I am getting duplicates maybe seed-1 and subseed -1 are not passing?
@if-ai if-ai marked this pull request as ready for review April 19, 2023 15:15
@oobabooga oobabooga added the extensions Pull requests concerning extensions and not the core functionality of the web UI. label Apr 19, 2023
Batch count, Batch size, clip skip, interactive mode SD prompt of command, saves .txt with generation parameter, save stealth info on .png and respects interactive address. stealth info needs  https://github.com/ashen-sensored/sd_webui_stealth_pnginfo installed on A1111 webui to work
@if-ai if-ai closed this Apr 21, 2023
@if-ai if-ai deleted the patch-2 branch April 21, 2023 01:52
@if-ai if-ai restored the patch-2 branch April 21, 2023 01:52
@if-ai if-ai deleted the patch-2 branch April 21, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Pull requests concerning extensions and not the core functionality of the web UI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants