Reverse run_extras change

Update serialization on the batch images endpoint
This commit is contained in:
Bruno Seoane
2022-10-24 08:32:18 -03:00
parent 90f02c7522
commit 595dca85af
3 changed files with 11 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
for img in image_folder:
image = Image.open(img)
imageArr.append(image)
imageNameArr.append(os.path.splitext(img.name)[0])
imageNameArr.append(os.path.splitext(img.orig_name)[0])
elif extras_mode == 2:
assert not shared.cmd_opts.hide_ui_dir_config, '--hide-ui-dir-config option must be disabled'