fix missing png info when Extras Batch Process

This commit is contained in:
Artem Zagidulin 2022-10-09 16:14:56 +03:00 committed by AUTOMATIC1111
parent d3cd46b038
commit 9ecea0a8d6
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def run_extras(extras_mode, image, image_folder, gfpgan_visibility, codeformer_v
if extras_mode == 1:
#convert file to pillow image
for img in image_folder:
image = Image.fromarray(np.array(Image.open(img)))
image = Image.open(img)
imageArr.append(image)
imageNameArr.append(os.path.splitext(img.orig_name)[0])
else: