How to access image upscaling programatically? #15022
-
Hello, I'm new to Stable Diffusion scripting. I'd like to use Extras feature to batch-process a number images with my custom script, to avoid clicking through dozens of images. What is the best way to approach this? Is it accessible via API (didn't find such example), should I try to reuse sd_upscale.py script? Any other suggestions? I just need someone to point me in the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Okay, looks like I was wrong. Had to resinstall torch for CUDA and just update whole environment. Thanks for help! |
Beta Was this translation helpful? Give feedback.
Have you tried batch mode?
Otherwise, see
/sdapi/v1/extra-single-image
and/sdapi/v1/extra-batch-images
in the API docs.extra-single-image
example:extra-batch-images
example: