-
Is there a method to do this using the API for Automatic1111? I am specifically interested in the InstructPix2Pix endpoint but will welcome any feedback on the topic. I have been able to successfully use the API for other general tasks but haven't figured out how to save the intermediate steps yet. I know there are Extensions to do so but I could not find a way to use these with the API (LMK if I missed something obvious here). One idea I had was to save an image from 1 step, 2 steps, 3 steps, etc., but this is obviously very cumbersome/resource-intensive and I am also randomizing the seed in my instructpix2pix POSTs so the destination image would not be consistent. I am not a developer so please forgive my naivete. Any help is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
I haven't tested it myself, but I think you can pull images from |
Beta Was this translation helpful? Give feedback.
-
That specific endpoint is not (yet) in main branch, it in my fork only. All others are in main.
I took a quick look and it uses the right concept with two Check your WebUI -> Settings -> Live Previews - i believe they need to be enabled to allow refresh calls while txt2img is still running. But honestly, don't know if that unlocks concurrent API access. |
Beta Was this translation helpful? Give feedback.
-
following is how i am calling the API, can you suggest what changes should I make to print the time left in terminal: url = "http://127.0.0.1:7860"
|
Beta Was this translation helpful? Give feedback.
-
@vladmandic I think the link is broken. Also, thanks for that answer. I am trying to run sdapi in an async way and this will be pretty useful. |
Beta Was this translation helpful? Give feedback.
-
Is there API support for sd_save_intermediate_images as I need to use it using APIs? |
Beta Was this translation helpful? Give feedback.
I haven't tested it myself, but I think you can pull images from
/sdapi/v1/progress
. This API endpoint is active during a generation and one of the fields iscurrent_image
. You can pull the image however frequently you want while the task is running.