File size: 629 Bytes
f4a41d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from call_img2img import *
from call_extras import *
import os
# C:\automated_output\extras\
# C:\automated_output\img2img\
# C:\automated_output\upscale me\
# takes all images with prompt info in their PNG, from the upscale directory, and upscales them
if __name__ == "__main__":
directory = 'C:\\automated_output\\Upscale me\\'
for filename in os.listdir(directory):
f = os.path.join(directory, filename)
# checking if it is a file
if os.path.isfile(f):
img2img1 = call_img2img(f,0.25,1.5,256)
finalfile = call_extras(img2img1)
|