Repository: stable-diffusion-webui
Issue: [Bug]: error when selecting options in img2img or inpaint
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?

When selecting options in img2img or inpaint, the options are duplicated on the radio buttons. When trying to use them, the queue errors out, and an error appears in the command prompt as follows:

```
Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\components\radio.py", line 170, in preprocess
    return [value for _, value in self.choices].index(x)
ValueError: ['Only masked', 'Only masked'] is not in list

```

The last line seems to be the relevant one.

### Steps to reproduce the problem

1. Go to img2img/inpaint
2. Click any of the options that are showing duplicated names
3. Click "generate"


### What should have happened?

There should not have been an error, and generation should have occurred without issue.

### Sysinfo

[sysinfo-2023-09-15-15-22.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/12620911/sysinfo-2023-09-15-15-22.txt)


### What browsers do you use to access the UI ?

Mozilla Firefox

### Console logs

```Shell
venv "D:\stable-diffusion-webui-personal\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --xformers --enable-insecure-extension-access --listen --port 47988 --no-progressbar-hiding --disable-safe-unpickle
reading metadata for D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors: AssertionError
Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 74, in _init_
    self.metadata = cache.cached_data_for_file('safetensors-metadata', "checkpoint/" + name, filename, read_metadata)
  File "D:\stable-diffusion-webui-personal\modules\cache.py", line 115, in cached_data_for_file
    value = func()
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 66, in read_metadata
    metadata = read_metadata_from_safetensors(filename)
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 269, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors is not a safetensors file

Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: D:\stable-diffusion-webui-personal\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
2023-09-15 11:09:54,247 - ControlNet - INFO - ControlNet v1.1.234
ControlNet preprocessor location: D:\stable-diffusion-webui-personal\extensions\sd-webui-controlnet\annotator\downloads
2023-09-15 11:09:54,970 - ControlNet - INFO - ControlNet v1.1.234
Loading weights [e896234040] from D:\stable-diffusion-webui-personal\models\Stable-diffusion\Random NSFW Models\scrimbloSauceFurrymix_scrimbloSauceV100.safetensors
Creating model from config: D:\stable-diffusion-webui-personal\configs\v1-inference.yaml
D:\stable-diffusion-webui-personal\extensions\sd-webui-controlnet\scripts\controlnet_ui\controlnet_ui_group.py:165: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row(elem_classes=["cnet-image-row"]).style(equal_height=True):
D:\stable-diffusion-webui-personal\extensions\sd-webui-controlnet\scripts\controlnet_ui\controlnet_ui_group.py:179: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  self.generated_image = gr.Image(
[VRAMEstimator] Loaded benchmark data.
D:\stable-diffusion-webui-personal\extensions\a1111-stable-diffusion-webui-vram-estimator\scripts\vram_estimator.py:243: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  bench_run_btn = gr.Button("Run benchmark", variant="primary").style(full_width=False)
D:\stable-diffusion-webui-personal\extensions\a1111-stable-diffusion-webui-vram-estimator\scripts\vram_estimator.py:243: GradioDeprecationWarning: Use scale in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not.
  bench_run_btn = gr.Button("Run benchmark", variant="primary").style(full_width=False)
D:\stable-diffusion-webui-personal\extensions\a1111-stable-diffusion-webui-vram-estimator\scripts\vram_estimator.py:244: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  load_results_button = gr.Button("Load results").style(full_width=False)
D:\stable-diffusion-webui-personal\extensions\a1111-stable-diffusion-webui-vram-estimator\scripts\vram_estimator.py:244: GradioDeprecationWarning: Use scale in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not.
  load_results_button = gr.Button("Load results").style(full_width=False)
D:\stable-diffusion-webui-personal\extensions\sd-webui-check-tensors\scripts\check-tensors.py:21: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
D:\stable-diffusion-webui-personal\extensions\stable-diffusion-webui-images-browser\scripts\image_browser.py:1165: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead.
  image_gallery = gr.Gallery(show_label=False, elem_id=f"{tab.base_tag}_image_browser_gallery").style(columns=opts.image_browser_page_columns, height=("max-content" if opts.image_browser_height_auto else None))
Running on local URL:  http://0.0.0.0:47988

Applying attention optimization: xformers... done.

To create a public link, set share=True in launch().
Startup time: 136.8s (prepare environment: 48.5s, import torch: 15.5s, import gradio: 2.5s, setup paths: 5.8s, import ldm: 0.1s, initialize shared: 1.2s, other imports: 6.7s, setup codeformer: 0.6s, setup gfpgan: 0.2s, list SD models: 1.1s, load scripts: 6.8s, initialize extra networks: 0.1s, cleanup temp dir: 0.1s, create ui: 43.0s, gradio launch: 5.6s).
Model loaded in 55.4s (load weights from disk: 0.4s, create model: 3.0s, apply weights to model: 13.8s, apply half(): 31.0s, load textual inversion embeddings: 0.6s, calculate empty prompt: 6.4s).
reading metadata for D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors: AssertionError
Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 74, in _init_
    self.metadata = cache.cached_data_for_file('safetensors-metadata', "checkpoint/" + name, filename, read_metadata)
  File "D:\stable-diffusion-webui-personal\modules\cache.py", line 115, in cached_data_for_file
    value = func()
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 66, in read_metadata
    metadata = read_metadata_from_safetensors(filename)
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 269, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors is not a safetensors file
reading metadata for D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors: AssertionError

Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 74, in _init_
    self.metadata = cache.cached_data_for_file('safetensors-metadata', "checkpoint/" + name, filename, read_metadata)
  File "D:\stable-diffusion-webui-personal\modules\cache.py", line 115, in cached_data_for_file
    value = func()
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 66, in read_metadata
    metadata = read_metadata_from_safetensors(filename)
  File "D:\stable-diffusion-webui-personal\modules\sd_models.py", line 269, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: D:\stable-diffusion-webui-personal\models\Stable-diffusion\SDXL Models\pyrosNSFWSDXL_v013e6.safetensors is not a safetensors file

Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\components\radio.py", line 170, in preprocess
    return [value for _, value in self.choices].index(x)
ValueError: ['Only masked', 'Only masked'] is not in list
Traceback (most recent call last):
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1429, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\blocks.py", line 1239, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\stable-diffusion-webui-personal\venv\lib\site-packages\gradio\components\radio.py", line 170, in preprocess
    return [value for _, value in self.choices].index(x)
ValueError: ['Only masked', 'Only masked'] is not in list
```


### Additional information

_No response_