API-extension for txt2img and img2img #12755
peterpernhofer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody,
I want to use the API for some scenarios from my C# applications (e.g. upscaling for already generated low-res images, while I go to bed, afterwards the computer should shut down). This isn't difficult for simple scenarios, but it is for images generated with Regional Prompter, scripts, and so on (there are hundreds extensions out for SD - not to mention Control.Net).
My question therefore:
The complete generation-infos are stored in the images (png-chunk/jpeg-exif and I'm able to extract them). Is it possible to pass this complete raw-infotext to the txt2img or img2img API and the function extracts all the passed parameters automaticly?
I would think that this should be possible, because at least I can paste a generation-info in the Web-UI prompt and click the "Read generation parameters from prompt" button. I already tried to pass this text in the txt2img - prompt to the API - but it throws an exception.
LG/Greats Peter
Beta Was this translation helpful? Give feedback.
All reactions