Basic scripts to process loads of images using the A1111 API.
The scripts need one (or more) running instance(s) of the Stable Diffusion WebUI to connect to.
-
txt2img_simple.py, txt2img_simple.js
Basic Text 2 Image examples.
Request a single image generation.
-
Batch Text 2 Image example.
Generates a number of images with a given prompt (and other parameters).
Uses multiple backend servers for generation, if given.
-
Batch Interrogation example.
Iterates over a list of image files, writes text file with interrogated captions.
Uses multiple backend servers for generation, if given.
-
Batch Image 2 Image example using the sd-parsers library.
Iterates over a list of image files, reuses previous & injects custom generation parameters.
Uses multiple backend servers for generation, if given.
-
Batch Image 2 Image 2 Video using the ffmpeg-python library.
Similar to img2img.py but creates a video file instead.
Allows the use of the built-in ffmpeg filters on the output video.
Uses multiple backend servers for generation, if given.
-
Basic video 2 video script using the imageio library.
Processes each frame of an input video using the Img2Img API, builds a new video as result.
-
Basic video 2 video script using the ffmpeg-python library.
Allows the use of the built-in ffmpeg filters on the output video.
Processes each frame of an input video using the Img2Img API, builds a new video as result.
-
Process live webcam footage using the pygame library.
Grabs frames from a webcam and processes them using the Img2Img API, displays the resulting images.