aboutsummaryrefslogtreecommitdiff
path: root/modules/extras.py
diff options
context:
space:
mode:
authorArtem Zagidulin <p0chta@yandex.ru>2022-10-09 16:14:56 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-09 18:35:25 +0300
commit9ecea0a8d6bdc434755e11128487fd62f1ff130f (patch)
tree0bfe18f7dc7d1d63c666de43b629a9df02bdbd63 /modules/extras.py
parentd3cd46b0388918128af203fda37fa63461c46611 (diff)
fix missing png info when Extras Batch Process
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py
index 39dd3806..41e8612c 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -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: