Klace / stable-diffusion-webui-instruct-pix2pix

Extension for webui to run instruct-pix2pix
Other
320 stars 20 forks source link

Sort files on directory read to keep them ordered #24

Closed joetech closed 1 year ago

joetech commented 1 year ago

os.listdir() doesn't respect the filename order, so this will sort the list before processing in order to keep the outputs in the same order as the inputs. Critical for video frame processing.

Example without this change:

Adding image: 175.jpg
Adding image: 169.jpg
Adding image: 124.jpg
Adding image: 138.jpg
Adding image: 024.jpg