Repository: stable-diffusion-webui
Issue: [Bug]: img2img batch processing I get KeyError: 'save_to_dirs'
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

So I have a brand new fresh reinstall of 1.6 A1111 via stability matrix, and I guess its not so stable lol. 

If I revert to 1.5.2 a1111 it works, so the issue is clearly 1.6 itself. Any help on how to fix would be appreciated. I'm trying to use temporal kit and ebsynth to rotoscope some video and the img2img batch processing is part of the process and now I can't move forward with my project.

### Steps to reproduce the problem

Install 1.6 a1111 on stability matrix

(doesn't work if there's no extensions or there are extensions)

Put input and output directories of tiled images that were output by temporal kit.

Press generate.

### What should have happened?

processed my images in a batch. No images at all were processed.

### Sysinfo

{
    "Platform": "Windows-10-10.0.19045-SP0",
    "Python": "3.10.11",
    "Version": "1.6.0",
    "Commit": "<none>",
    "Script path": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI",
    "Data path": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI",
    "Extensions dir": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\extensions",
    "Checksum": "bb569854ce0bc1a58018e2f536c77cd281b03970b0755187d19a68d512bcce5c",
    "Commandline": [
        "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\launch.py",
        "--xformers",
        "--api",
        "--skip-python-version-check"
    ],
    "Torch env info": "'NoneType' object has no attribute 'splitlines'",
    "Exceptions": [
        {
            "exception": "'save_to_dirs'",
            "traceback": [
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\call_queue.py, line 57, f",
                    "res = list(func(*args, **kwargs))"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\call_queue.py, line 36, f",
                    "res = func(*args, **kwargs)"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\img2img.py, line 202, img2img",
                    "process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=img2img_batch_png_info_dir)"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\extensions\\sd-webui-controlnet\\scripts\\batch_hijack.py, line 25, img2img_process_batch_hijack",
                    "return getattr(img2img, '__controlnet_original_process_batch')(p, *args, **kwargs)"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\img2img.py, line 116, process_batch",
                    "process_images(p)"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\processing.py, line 712, process_images",
                    "stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}"
                ],
                [
                    "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\modules\\processing.py, line 712, <dictcomp>",
                    "stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}"
                ]
            ]
        }
    ],
    "CPU": {
        "model": "AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD",
        "count logical": 16,
        "count physical": 8
    },
    "RAM": {
        "total": "64GB",
        "used": "16GB",
        "free": "48GB"
    },
    "Extensions": [
        {
            "name": "TemporalKit",
            "path": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\extensions\\TemporalKit",
            "version": "f46d255c",
            "branch": "main",
            "remote": "https://github.com/CiaraStrawberry/TemporalKit"
        },
        {
            "name": "ebsynth_utility",
            "path": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\extensions\\ebsynth_utility",
            "version": "8ff9fbf2",
            "branch": "main",
            "remote": "https://github.com/s9roll7/ebsynth_utility.git"
        },
        {
            "name": "sd-webui-controlnet",
            "path": "M:\\A1111 Stability Matrix\\Packages\\Stable Diffusion WebUI\\extensions\\sd-webui-controlnet",
            "version": "f2aafcf2",
            "branch": "main",
            "remote": "https://github.com/Mikubill/sd-webui-controlnet.git"
        }
    ],
    "Inactive extensions": [],
    "Environment": {
        "GIT": "M:\\A1111 Stability Matrix\\PortableGit\\bin\\git.exe",
        "GRADIO_ANALYTICS_ENABLED": "False"
    },
    "Config": {
        "show_progress_type": "TAESD",
        "sd_model_checkpoint": "0.45(protogenX34Photorealism_1) + 0.55(synthwavepunk_v2).ckpt [e0834ffd47]",
        "sd_checkpoint_hash": "e0834ffd47e27bd07cb1544435e31d97812785bcb7896295691c7a7639ac2ed5",
        "disabled_extensions": [],
        "disable_all_extensions": "none"
    },
    "Startup": {
        "total": 24.43670153617859,
        "records": {
            "initial startup": 0.001998424530029297,
            "prepare environment/checks": 0.0,
            "prepare environment/git version info": 0.12556171417236328,
            "prepare environment/torch GPU test": 2.5478527545928955,
            "prepare environment/clone repositores": 2.3983850479125977,
            "prepare environment/run extensions installers/ebsynth_utility": 0.2395470142364502,
            "prepare environment/run extensions installers/sd-webui-controlnet": 0.5141711235046387,
            "prepare environment/run extensions installers/TemporalKit": 0.1589343547821045,
            "prepare environment/run extensions installers": 0.9126524925231934,
            "prepare environment": 6.082458972930908,
            "launcher": 0.010001897811889648,
            "import torch": 5.866882085800171,
            "import gradio": 1.8972556591033936,
            "setup paths": 1.5957834720611572,
            "import ldm": 0.007571697235107422,
            "import sgm": 0.0,
            "initialize shared": 0.6423473358154297,
            "other imports": 1.6392791271209717,
            "opts onchange": 0.001001596450805664,
            "setup SD model": 0.003999233245849609,
            "setup codeformer": 0.3326594829559326,
            "setup gfpgan": 0.03713679313659668,
            "set samplers": 0.0,
            "list extensions": 0.0010046958923339844,
            "restore config state file": 0.0,
            "list SD models": 0.07654547691345215,
            "list localizations": 0.0,
            "load scripts/custom_code.py": 0.013001203536987305,
            "load scripts/img2imgalt.py": 0.0050029754638671875,
            "load scripts/loopback.py": 0.004994869232177734,
            "load scripts/outpainting_mk_2.py": 0.0060634613037109375,
            "load scripts/poor_mans_outpainting.py": 0.005001068115234375,
            "load scripts/postprocessing_codeformer.py": 0.005028963088989258,
            "load scripts/postprocessing_gfpgan.py": 0.004004240036010742,
            "load scripts/postprocessing_upscale.py": 0.005997419357299805,
            "load scripts/prompt_matrix.py": 0.0039980411529541016,
            "load scripts/prompts_from_file.py": 0.00500035285949707,
            "load scripts/refiner.py": 0.004000186920166016,
            "load scripts/sd_upscale.py": 0.003999233245849609,
            "load scripts/seed.py": 0.015523433685302734,
            "load scripts/xyz_grid.py": 0.012053966522216797,
            "load scripts/Berry_Method.py": 0.3955237865447998,
            "load scripts/Ebsynth_Processing.py": 0.00600123405456543,
            "load scripts/TemporalKitImg2ImgTab.py": 0.0,
            "load scripts/berry_utility.py": 0.0010001659393310547,
            "load scripts/optical_flow_raft.py": 0.14160895347595215,
            "load scripts/optical_flow_simple.py": 0.0009984970092773438,
            "load scripts/sd-TemporalKit-UI.py": 1.8998215198516846,
            "load scripts/stable_diffusion_processing.py": 0.0010006427764892578,
            "load scripts/custom_script.py": 0.004019021987915039,
            "load scripts/ui.py": 0.09607505798339844,
            "load scripts/adapter.py": 0.0010058879852294922,
            "load scripts/api.py": 0.3385581970214844,
            "load scripts/batch_hijack.py": 0.007001161575317383,
            "load scripts/cldm.py": 0.0,
            "load scripts/controlmodel_ipadapter.py": 0.0010001659393310547,
            "load scripts/controlnet.py": 0.22017621994018555,
            "load scripts/controlnet_diffusers.py": 0.0009975433349609375,
            "load scripts/controlnet_lllite.py": 0.0,
            "load scripts/controlnet_lora.py": 0.001001119613647461,
            "load scripts/controlnet_model_guess.py": 0.0,
            "load scripts/controlnet_version.py": 0.0009989738464355469,
            "load scripts/external_code.py": 0.0,
            "load scripts/global_state.py": 0.0010030269622802734,
            "load scripts/hook.py": 0.0010035037994384766,
            "load scripts/infotext.py": 0.00099945068359375,
            "load scripts/logging.py": 0.00099945068359375,
            "load scripts/lvminthin.py": 0.0009996891021728516,
            "load scripts/movie2movie.py": 0.0,
            "load scripts/processor.py": 0.00099945068359375,
            "load scripts/utils.py": 0.0010068416595458984,
            "load scripts/xyz_grid_support.py": 0.0009970664978027344,
            "load scripts/ldsr_model.py": 0.08119511604309082,
            "load scripts/lora_script.py": 0.3378448486328125,
            "load scripts/scunet_model.py": 0.05701017379760742,
            "load scripts/swinir_model.py": 0.06201362609863281,
            "load scripts/hotkey_config.py": 0.003999948501586914,
            "load scripts/extra_options_section.py": 0.005003213882446289,
            "load scripts": 3.765532970428467,
            "load upscalers": 0.015995502471923828,
            "refresh VAE": 0.002001523971557617,
            "refresh textual inversion templates": 0.0009982585906982422,
            "scripts list_optimizers": 0.0010001659393310547,
            "scripts list_unets": 0.0,
            "reload hypernetworks": 0.002001523971557617,
            "initialize extra networks": 0.047380685806274414,
            "scripts before_ui_callback": 0.0009999275207519531,
            "create ui": 0.8396399021148682,
            "gradio launch": 1.5089776515960693,
            "add APIs": 0.15125417709350586,
            "app_started_callback/api.py": 0.0030002593994140625,
            "app_started_callback/lora_script.py": 0.0,
            "app_started_callback": 0.0030002593994140625
        }
    },
    "Packages": [
        "absl-py==2.0.0",
        "accelerate==0.21.0",
        "addict==2.4.0",
        "aenum==3.1.15",
        "aiofiles==23.2.1",
        "aiohttp==3.8.6",
        "aiosignal==1.3.1",
        "altair==5.1.2",
        "antlr4-python3-runtime==4.9.3",
        "anyio==3.7.1",
        "asttokens==2.4.1",
        "async-timeout==4.0.3",
        "attrs==23.1.0",
        "backcall==0.2.0",
        "basicsr==1.4.2",
        "beautifulsoup4==4.12.2",
        "blendmodes==2022",
        "boltons==23.0.0",
        "cachetools==5.3.2",
        "certifi==2023.7.22",
        "cffi==1.16.0",
        "charset-normalizer==3.3.1",
        "clean-fid==0.1.35",
        "click==8.1.7",
        "clip==1.0",
        "color-matcher==0.5.0",
        "colorama==0.4.6",
        "contourpy==1.1.1",
        "cssselect2==0.7.0",
        "cycler==0.12.1",
        "ddt==1.6.0",
        "decorator==4.0.11",
        "deprecation==2.1.0",
        "docutils==0.20.1",
        "easydict==1.11",
        "einops==0.4.1",
        "exceptiongroup==1.1.3",
        "executing==2.0.0",
        "facexlib==0.3.0",
        "fastapi==0.94.0",
        "ffmpeg-python==0.2.0",
        "ffmpy==0.3.1",
        "filelock==3.13.0",
        "filterpy==1.4.5",
        "flatbuffers==23.5.26",
        "fonttools==4.43.1",
        "frozenlist==1.4.0",
        "fsspec==2023.10.0",
        "ftfy==6.1.1",
        "future==0.18.3",
        "fvcore==0.1.5.post20221221",
        "gdown==4.7.1",
        "gfpgan==1.3.8",
        "gitdb==4.0.11",
        "gitpython==3.1.32",
        "google-auth-oauthlib==1.1.0",
        "google-auth==2.23.3",
        "gradio-client==0.5.0",
        "gradio==3.41.2",
        "grpcio==1.59.0",
        "h11==0.12.0",
        "httpcore==0.15.0",
        "httpx==0.24.1",
        "huggingface-hub==0.18.0",
        "idna==3.4",
        "imageio-ffmpeg==0.4.9",
        "imageio==2.31.6",
        "importlib-metadata==6.8.0",
        "importlib-resources==6.1.0",
        "inflection==0.5.1",
        "iopath==0.1.9",
        "ipython==8.16.1",
        "jedi==0.19.1",
        "jinja2==3.1.2",
        "jsonmerge==1.8.0",
        "jsonschema-specifications==2023.7.1",
        "jsonschema==4.19.1",
        "kiwisolver==1.4.5",
        "kornia==0.6.7",
        "lark==1.1.2",
        "lazy-loader==0.3",
        "lightning-utilities==0.9.0",
        "linkify-it-py==2.0.2",
        "llvmlite==0.41.1",
        "lmdb==1.4.1",
        "lpips==0.1.4",
        "lxml==4.9.3",
        "markdown-it-py==2.2.0",
        "markdown==3.5",
        "markupsafe==2.1.3",
        "matplotlib-inline==0.1.6",
        "matplotlib==3.8.0",
        "mdit-py-plugins==0.3.3",
        "mdurl==0.1.2",
        "mediapipe==0.10.7",
        "moviepy==0.2.3.2",
        "mpmath==1.3.0",
        "multidict==6.0.4",
        "mypy-extensions==1.0.0",
        "networkx==3.2.1",
        "numba==0.58.1",
        "numpy==1.23.5",
        "oauthlib==3.2.2",
        "omegaconf==2.2.3",
        "open-clip-torch==2.20.0",
        "opencv-contrib-python==4.8.1.78",
        "opencv-python==4.8.1.78",
        "orjson==3.9.10",
        "packaging==23.2",
        "pandas==2.1.2",
        "parso==0.8.3",
        "pickleshare==0.7.5",
        "piexif==1.1.3",
        "pillow==9.5.0",
        "pip==23.3.1",
        "platformdirs==3.11.0",
        "portalocker==2.8.2",
        "prompt-toolkit==3.0.39",
        "protobuf==3.20.3",
        "psutil==5.9.5",
        "pure-eval==0.2.2",
        "pyasn1-modules==0.3.0",
        "pyasn1==0.5.0",
        "pycparser==2.21",
        "pydantic==1.10.13",
        "pydub==0.25.1",
        "pygments==2.16.1",
        "pyparsing==3.1.1",
        "pyre-extensions==0.0.29",
        "pysocks==1.7.1",
        "python-dateutil==2.8.2",
        "python-multipart==0.0.6",
        "pytorch-lightning==1.9.4",
        "pytz==2023.3.post1",
        "pywavelets==1.4.1",
        "pywin32==306",
        "pyyaml==6.0.1",
        "realesrgan==0.3.0",
        "referencing==0.30.2",
        "regex==2023.10.3",
        "reportlab==4.0.6",
        "requests-oauthlib==1.3.1",
        "requests==2.31.0",
        "resize-right==0.0.2",
        "rpds-py==0.10.6",
        "rsa==4.9",
        "safetensors==0.3.1",
        "scenedetect==0.6.2",
        "scikit-image==0.21.0",
        "scipy==1.11.3",
        "seaborn==0.13.0",
        "semantic-version==2.10.0",
        "sentencepiece==0.1.99",
        "setuptools==68.2.2",
        "six==1.16.0",
        "smmap==5.0.1",
        "sniffio==1.3.0",
        "sounddevice==0.4.6",
        "soupsieve==2.5",
        "stack-data==0.6.3",
        "starlette==0.26.1",
        "svglib==1.5.1",
        "sympy==1.12",
        "tabulate==0.9.0",
        "tb-nightly==2.16.0a20231028",
        "tensorboard-data-server==0.7.2",
        "termcolor==2.3.0",
        "tifffile==2023.9.26",
        "timm==0.9.2",
        "tinycss2==1.2.1",
        "tokenizers==0.13.3",
        "tomesd==0.1.3",
        "tomli==2.0.1",
        "toolz==0.12.0",
        "torch==2.0.1+cu118",
        "torchdiffeq==0.2.3",
        "torchmetrics==1.2.0",
        "torchsde==0.2.5",
        "torchvision==0.15.2+cu118",
        "tqdm==4.66.1",
        "traitlets==5.12.0",
        "trampoline==0.1.2",
        "transformers==4.30.2",
        "transparent-background==1.2.9",
        "typing-extensions==4.8.0",
        "typing-inspect==0.9.0",
        "tzdata==2023.3",
        "uc-micro-py==1.0.2",
        "urllib3==2.0.7",
        "uvicorn==0.23.2",
        "wcwidth==0.2.8",
        "webencodings==0.5.1",
        "websockets==11.0.3",
        "werkzeug==3.0.1",
        "wheel==0.41.2",
        "xformers==0.0.20",
        "yacs==0.1.8",
        "yapf==0.40.2",
        "yarl==1.9.2",
        "zipp==3.17.0"
    ]
}

### What browsers do you use to access the UI ?

Google Chrome

### Console logs

```Shell
Will process 5 images, creating 1 new images for each.
*** Error completing request
*** Arguments: ('task(rasyv6nfslgn0xx)', 5, 'oil painting', '', [], None, None, None, None, None, None, None, 20, 'Euler a', 4, 0, 1, 1, 1, 7, 1.5, 0.75, 0, 512, 512, 1, 0, 0, 32, 0, 'M:\\Newest swiss\\0\\input', 'M:\\Newest swiss\\0', '', [], False, [], '', <gradio.routes.Request object at 0x00000233CB179300>, 0, False, '', 0.8, -1, False, -1, 0, 0, 0, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x00000233CB17A050>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x00000233CB1E2290>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x00000233CB1E3190>, '* `CFG Scale` should be 2 or lower.', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False, '', False, 'Normal', 1, True, 1, 1, 'None', False, False, False, 'YuNet', 512, 1024, 0.5, 1.5, False, 'face close up,', 0.5, 0.5, False, True, None, None, False, None, None, False, None, None, False, 50) {}
    Traceback (most recent call last):
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\call_queue.py", line 36, in f
        res = func(*args, **kwargs)
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\img2img.py", line 202, in img2img
        process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=img2img_batch_png_info_dir)
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 25, in img2img_process_batch_hijack
        return getattr(img2img, '__controlnet_original_process_batch')(p, *args, **kwargs)
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\img2img.py", line 116, in process_batch
        process_images(p)
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\processing.py", line 712, in process_images
        stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}
      File "M:\A1111 Stability Matrix\Packages\Stable Diffusion WebUI\modules\processing.py", line 712, in <dictcomp>
        stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}
    KeyError: 'save_to_dirs'
```


### Additional information

_No response_