deforum-art / sd-webui-deforum

Deforum extension for AUTOMATIC1111's Stable Diffusion webui
https://deforum.github.io
Other
2.69k stars 389 forks source link

[Bug]: Cannot read Custom Settings file #598

Closed Piscabo closed 1 year ago

Piscabo commented 1 year ago

Have you read the latest version of the FAQ?

Is there an existing issue for this?

Are you using the latest version of the Deforum extension?

What happened?

image image

Steps to reproduce the problem

  1. Go to try to load the previous preset *.txt
  2. Press load settings
  3. "Error" everywhere like in the image

What should have happened?

No response

WebUI and Deforum extension Commit IDs

APIGithubGradioReload UI python:3.10.9  •  torch: 2.0.0+cu118  •  xformers: 0.0.17rc482  •  gradio: 3.23.0  •  commit: 346d5548•  checkpoint:d1406b31c0

On which platform are you launching the webui with the extension?

No response

Deforum settings

Any setting file fail, by not being found.

Webui core settings

Don't get to that stage

Console logs

The custom settings file does not exist. The values will be unchanged.
Traceback (most recent call last):
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1203, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1203, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1203, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1203, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "C:\AI_Files\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1203, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list

Additional information

No response

hithereai commented 1 year ago

but where is the file you try to load? I can't do anything without it.

Piscabo commented 1 year ago

It is the original file that just changed with some settings, but once I loaded mine, I can't even load the original back, says it cant find it. Then I get the red crosses. Is there a dropdown, for picking the setting files? Would be nice if one can set an alternative path in settings. DF01_settings.txt

hithereai commented 1 year ago

The error is from this line:

"soundtrack_path": "E:\Peter Gabriel\PanDSMix.wav",

The forward slashes need to be replaced with backslashes - so the path looks like this:

E:/Peter Gabriel/PanDSMix.wav

Then it will load just fine.