Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error on save settings #842

Open
3 tasks done
p0mad opened this issue Aug 13, 2023 · 1 comment
Open
3 tasks done

[Bug]: Error on save settings #842

p0mad opened this issue Aug 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@p0mad
Copy link

p0mad commented Aug 13, 2023

Have you read the latest version of the FAQ?

  • I have visited the FAQ page right now and my issue is not present there

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the Deforum extension?

  • I have Deforum updated to the lastest version and I still have the issue.

What happened?

After applying my desired prompt, init, controlnet , ... when i click on the save settings botton, i get an error:
Traceback (most recent call last):
File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "D:A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
return self.choices.index(x)
ValueError: 1 is not in list

Steps to reproduce the problem

  1. Go to deforum
  2. Press the init, contolnet, ... settings
  3. click on save settings
  4. After seeing this error, when i click on generate, also get the same error!

What should have happened/how would you fix it?

No response

Torch version

API  •  Github  •  Gradio  •  Startup profile  •  Reload UI
version: v1.5.1  •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: 0.0.20  •  gradio: 3.32.0  •  checkpoint: 48dda9ac4b

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

Local PC setup (Windows)

Deforum settings

image
image
image
image

validated json as a prompt

image
image

Webui core settings

notting

Console logs

venv "D:\A\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a



Checking roop requirements
Install insightface==0.7.3
Installing sd-webui-roop requirement: insightface==0.7.3     
Install onnx==1.14.0
Installing sd-webui-roop requirement: onnx==1.14.0
Install onnxruntime==1.15.0
Installing sd-webui-roop requirement: onnxruntime==1.15.0    
Install opencv-python==4.7.0.72
Installing sd-webui-roop requirement: opencv-python==4.7.0.72



Launching Web UI with arguments: --device-id 1 --xformers --port 4001
[-] ADetailer initialized. version: 23.7.11, num models: 9
2023-08-13 14:57:30,304 - roop - INFO - roop v0.0.2
2023-08-13 14:57:30,304 - roop - INFO - roop v0.0.2
2023-08-13 14:57:31,439 - ControlNet - INFO - ControlNet v1.1.237
ControlNet preprocessor location: D:\A\extensions\sd-webui-controlnet\annotator\downloads
2023-08-13 14:58:00,703 - ControlNet - INFO - ControlNet v1.1.237
Loading weights [48dda9ac4b] from D:\A\models\Stable-diffusion\rcnzCartoon3d_v20.safetensors
Creating model from config: D:\A\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
LAB
*Deforum ControlNet support: enabled*
DiffusionWrapper has 859.52 M params.
Running on local URL:  http://127.0.0.1:4001

To create a public link, set `share=True` in `launch()`.
Startup time: 102.2s (launcher: 34.3s, import torch: 9.9s, import gradio: 2.7s, setup paths: 4.0s, other imports: 4.0s, setup codeformer: 0.3s, list SD models: 0.2s, load scripts: 43.6s, create ui: 2.4s, gradio launch: 0.7s).
Applying attention optimization: xformers... done.
Model loaded in 9.0s (load weights from disk: 0.7s, create model: 2.5s, apply weights to model: 2.4s, apply half(): 1.4s, move model to device: 1.8s, load textual inversion embeddings: 0.2s, calculate empty prompt: 0.2s).
*** Error completing request
*** Arguments: ('deforum_settings.txt', False, None, '2D', 120, 'replicate', '0', '0', '0', '0', '0: (1.75)', '0', '0', '0: (0)', '0: (0)', '0: (0)', False, '0: (0)', '0: (0)', '0: (0)', '0: (53)', '0: (0.065)', '0: (0.98)', '0: (1.0)', '12.5', False, '0: (30)', '0: (70)', '0: (1)', False, '0: (200)', '0: (10000)', '0:(s), 1:(-1), "max_f-2":(-1), "max_f-1":(s)', '0:(1.5)', 
False, '0: (1)', '0: (0)', False, '0: ("Euler a")', False, '0: ("{video_mask}")', '0: ("{video_mask}")', False, '0: ("model1.ckpt"), 100: ("model2.safetensors")', False, '0: (2)', False, '0: (1.05)', False, '20230129210106', False, '0: (0)', False, '0: (1)', '0: (0.1)', '0: (5)', '0: (1)', '0: (0)', 'LAB', '', 1, False, False, 2, 'None', '0: (1)', 'None', '0: (1)', '0', 'perlin', 8, 8, 4, 0.5, True, 'Midas-3-Hybrid', 0.2, 'border', 'bicubic', False, 'https://deforum.github.io/a1/V1.mp4', 1, 0, -1, False, False, 'https://deforum.github.io/a1/VM1.mp4', '0:(0.5)', '0:(0.5)', '0:(1)', '0:(100)', '0:(0)', '0:(1)', False, 'None', True, 'None', False, False, 2, 'RAFT', 'None', False, 'None', False, 'None', False, False, '{\n    "0": "masterpiece, high quality best quality,close up,little boy, playing sign language, (no background:1.7), (looking at frontal camera:1.3), (notting between the boy and camera:1.2), upperbody, soft pastel colors, Pixar, Disney character, all green color smooth clothes\n"\n}\n    ', 'masterpiece, high quality best quality,close up,little boy, playing sign language, (no background:1.7), (looking at frontal camera:1.3), (notting between the boy and camera:1.2), upperbody, soft pastel colors, Pixar, Disney character, all green color smooth clothes', 'nsfw, nude, background, background lighting, (holding something in hands:2.0), (objects between hands and body:1.9), logo, legs, multiple shields, lipstick, scarf, legs, headphone, handsfree, missing hands, (missing fingers:1.5), missing face, (additional fingers:1.4), nipples, muscles, disfigured, kitsch, (ugly:1.3), oversaturated, grain, low-res, Deformed, (blurry:1.1), bad anatomy, disfigured, (poorly drawn face:1.2), mutation, mutated, extra limb, (poorly drawn hands:1.5), missing limb, blurry, floating limbs, disconnected limbs, (malformed hands:1.2), out of focus, long neck, long 
body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, cross-eye, blurry, (bad anatomy:1.1), tie,  Bow tie, (table in front:1.4)\nEasyNegative, drawn by bad-artist, sketch by bad-artist-anime, (worst quality, poor details:1.4), (bad-hands-5:1.4)', 512, 512, True, False, False, 0, 0, 1212772291, 'Euler', 30, 'Deforum_{timestring}', 'fixed', 1212772291, False, 0.8, True, 'D:sl\\SignL\\out_A\\280\\00001-0000.png', False, False, 
'https://deforum.github.io/a1/M1.jpg', False, 1.0, 1.0, True, 4, 1, True, 4, 'ignore', 10.0, False, 24, False, False, False, 'C:/SD/20230124234916_%09d.png', 'None', 'https://deforum.github.io/a1/A1.mp3', False, 'x2', 'realesr-animevideov3', True, False, 'RIFE v4.6', 2, False, 2, True, False, '', True, False, '{\n    "0": "https://deforum.github.io/a1/Gi1.png",\n    "max_f/4-5": "https://deforum.github.io/a1/Gi2.png",\n    "max_f/2-10": "https://deforum.github.io/a1/Gi3.png",\n    "3*max_f/4-15": "https://deforum.github.io/a1/Gi4.jpg",\n    "max_f-20": "https://deforum.github.io/a1/Gi1.png"\n}', '0:(0.75)', '0:(0.35)', '0:(0.25)', '0:(20)', '0:(0.075)', False, 'D:sl\\SignL\\input_A\\280\\rembg', '', True, False, True, 'dw_openpose_full', 'control_v11p_sd15_openpose [cab727d4]', '0:(1.95)', '0:(0.0)', '0:(1.0)', 512, 64, 64, 'Just Resize', 'ControlNet is more important', False, True, 'D:sl\\SignL\\input_A\\280\\rembg', '', True, False, True, 'normal_map', 'control_v11p_sd15_normalbae [316696f1]', '0:(1.25)', '0:(0.0)', '0:(0.45)', 512, 0.4, 64, 'Just Resize', 'My prompt is more important', False, True, '', '', True, False, True, 'lineart_coarse', 'control_v11p_sd15s2_lineart_anime [3825e83e]', '0:(0.5)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Just Resize', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, False, 24, False, False, False, 'C:/SD/20230124234916_%09d.png', 'None', 'https://deforum.github.io/a1/A1.mp3', False, 
'x2', 'realesr-animevideov3', True, False, 'RIFE v4.6', 2, False, 2, True, False) {}
    Traceback (most recent call last):
      File "D:\A\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "D:\A\extensions\deforum\scripts\deforum_helpers\settings.py", line 71, in save_settings
        args_dict["prompts"] = json.loads(data['animation_prompts'])
      File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads
        return _default_decoder.decode(s)
      File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode
        obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Invalid control character at: line 2 column 276 (char 277)

---
reading custom settings from deforum_settings.txt
The custom settings file does not exist. The values will be unchanged.
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list
Traceback (most recent call last):
  File "D:\A\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1321, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\A\venv\lib\site-packages\gradio\blocks.py", line 1171, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\A\venv\lib\site-packages\gradio\components.py", line 1396, in preprocess
    return self.choices.index(x)
ValueError: 1 is not in list

Additional information

No response

@p0mad p0mad added the bug Something isn't working label Aug 13, 2023
@kabachuha
Copy link
Member

Try deleting your ui-config.json to see if it has been caused due to webui's UI caching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants