Open charlesculp opened 1 year ago
Having this issue anytime I try to apply changes to exertions, they never save.
To create a public link, set share=True
in launch()
.
Traceback (most recent call last):
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\chlyw\Desktop\Automatic1111\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, args)
File "C:\Users\chlyw\Desktop\Automatic1111\modules\ui_extensions.py", line 26, in apply_and_restart
check_access()
File "C:\Users\chlyw\Desktop\Automatic1111\modules\ui_extensions.py", line 22, in check_access
assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags"
AssertionError: extension access disabled because of command line flags
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, self._args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, self._args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, self._args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ERROR:asyncio:Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
I was able to get it working again by reverting the commit from @mcmonkey4eva to change the resolve / absolute path update.
Newb with git, so thanks for the discussion.
commit 88a46e8427fbaa73eb37c9eaabbb62b8647a5f32
@ -26,7 +26,7 @@ def add_pages_to_demo(app): def fetch_file(filename: str = ""): from starlette.responses import FileResponse
if not any([Path(x).resolve() in Path(filename).resolve().parents for x in allowed_dirs]):
if not any([Path(x).absolute() in Path(filename).absolute().parents for x in allowed_dirs]):
raise ValueError(f"File cannot be fetched: {filename}. Must be in one of directories registered by extra pages.")
ext = os.path.splitext(filename)[1].lower()
Do you mean reverting to that commit (ie undoing changes that came after), or do you mean undoing that commit itself fixes it? Because if you mean the latter, that... doesn't make any sense? 0.o That commit is very self-contained shouldn't be possible to affect code outside of itself. Other than maybe there's a pre-existing code bug that you are accidentally saved from because you're using symlinks and without that commit it just refuses to load data under a symlink? But that'd be odd.
EDIT: per your opening post
Commit where the problem happens python: 3.10.6 • torch: 1.12.1+cu113 • xformers: 0.0.14.dev • gradio: 3.16.2 • commit: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/3e0f9a75438fa815429b5530261bcf7d80f3f101 • checkpoint: 13dfc9921f
Your initial report predates my commit so... did you mean updating has now fixed it? Or... what?
Your initial report predates my commit so... did you mean updating has now fixed it? Or... what?
Wow. I will investigate more this evening. I had "git pull" in my web-user.bat, and ran it this morning. it updated. Then it didn't work, so I investigated. I used GitDesktop, found your entry, right clicked and chose "Revert Changes in Commit". I then removed "git pull" from my web-user.bat, and re-ran. Now it works.
return self.choices.index(x) ValueError: '' is not in list
return self.choices.index(x) ValueError: 2 is not in list
These errors are from dropdowns. The first one is saying that an empty string is not in the dropdowns backend choices.
The second one is attempting to use 2 as a lists value and trying to get the index, and it's also not in the backend choices.
Gradio's dropdowns can communicate by sending the index of the list item, or by sending the value, then during lookup for the information, it will use the proper one.
This type of error can be caused by a few things: by not syncing the front and backend, by using improper data, by setting the dropdown type to index but passing values, or the inverse, setting the type to values and passing indexes.
To hunt down the problem, you'll need to be aware of which dropdowns were included in the data transfer, then check their flow to see if it's correct.
For the empty string, this is because they did not set a default value on the dropdown, and when it passes, it has nothing to pass, and if they did not include handling for an empty string, it will error.
For the situation with the "2", that could be a string or index, I don't know.
You'd have to find the dropdown and look at it's "type".
I experienced problem when doing a txt2img generation, then stopping server to pull update of code, then try regeneration with the prior txt2img browser page. It appears the state associated with the page and provided by the browser changed sufficiently between code versions to make the server process unhappy with the old format the stale browser page was providing. Saving the settings and refreshing the web page appeared to resync the page and the server and solve the problem (at least for me). You could of course open up a new browser after the update and copy the setting over for side by side testing.
stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess return self.choices.index(x) ValueError: '' is not in list
Loading A111 WebUI Launcher ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i Settings file found, loading → Updating Settings File ✓ i Launcher Version 1.7.0 i Found a custom WebUI Config i No Launcher launch options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ → Checking requirements : i Python 3.10.6150.1013 found in registry: C:\Users\Admin\AppData\Local\Programs\Python\Python310\ i Clearing PATH of any mention of Python → Adding python 3.10 to path ✓ i Git found and already in PATH: C:\Program Files\Git\cmd\git.exe i Automatic1111 SD WebUI found: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui i One or more checkpoint models were found ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Loading Complete, opening launcher ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i Arguments are now: --medvram --xformers --ckpt-dir 'C:\Users\Admin\Documents\odele' --opt-sub-quad-attention --api ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Webui ✓ Done ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Webui ✓ Done ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: canvas-zoom remote: Enumerating objects: 17, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (9/9), done. remote: Total 17 (delta 4), reused 14 (delta 4), pack-reused 0 Unpacking objects: 100% (17/17), 6.76 KiB | 177.00 KiB/s, done. From https://github.com/richrobber2/canvas-zoom eee34cc..fd5d8a1 main -> origin/main ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: CFG-Schedule-for-Automatic1111-SD ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ↺ Updating Extension: multidiffusion-upscaler-for-automatic1111 remote: Enumerating objects: 19, done. remote: Counting objects: 100% (19/19), done. remote: Compressing objects: 100% (4/4), done. remote: Total 12 (delta 8), reused 12 (delta 8), pack-reused 0 Unpacking objects: 100% (12/12), 1.45 KiB | 49.00 KiB/s, done. From https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111
Launching Web UI with arguments: --autolaunch --medvram --xformers --ckpt-dir C:\Users\Admin\Documents\odele --opt-sub-quad-attention --api reading lora C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\models\Lora\hyperanatomy_MegamergeV1.safetensors: AssertionError Traceback (most recent call last): File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 84, in init self.metadata = sd_models.read_metadata_from_safetensors(filename) File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\sd_models.py", line 221, in read_metadata_from_safetensors assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file" AssertionError: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\models\Lora\hyperanatomy_MegamergeV1.safetensors is not a safetensors file
Loading weights [5d76b7f7b9] from C:\Users\Admin\Documents\odele\hyperhaven orange.safetensors Creating model from config: C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying xformers cross attention optimization. Textual inversion embeddings loaded(0): Model loaded in 11.4s (load weights from disk: 0.9s, create model: 0.4s, apply weights to model: 9.5s, apply half(): 0.6s). Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Startup time: 20.2s (import torch: 1.9s, import gradio: 1.2s, import ldm: 1.7s, other imports: 1.1s, list SD models: 0.1s, setup codeformer: 0.2s, load scripts: 1.0s, load SD checkpoint: 11.8s, create ui: 0.8s, gradio launch: 0.3s).
Traceback (most recent call last):
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\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:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess
return self.choices.index(x)
ValueError: '' is not in list
Traceback (most recent call last):
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\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:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess
return self.choices.index(x)
ValueError: '' is not in list
Traceback (most recent call last):
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\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:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess
return self.choices.index(x)
ValueError: '' is not in list
Traceback (most recent call last):
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\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:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "C:\Users\Admin\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1377, in preprocess
return self.choices.index(x)
ValueError: '' is not in list
having issue with this multi frame video
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\routes.py", line 408, in run_predict
output = await app.get_blocks().process_api(
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1313, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1163, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3476, in preprocess
return [process_single_file(f) for f in x]
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3476, in <listcomp>
return [process_single_file(f) for f in x]
File "E:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\components.py", line 3442, in process_single_file
f["name"],
KeyError: 'name'
Is there an existing issue for this?
What happened?
Issue with gradio library when trying to generate in txt2img or img2img (only ones tested). Only found on today's build, it worked yesterday.
Traceback (most recent call last): File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1282, in preprocess return self.choices.index(x) ValueError: '' is not in list
or
Traceback (most recent call last): File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "E:\SD\StableDiffusion2\venv\lib\site-packages\gradio\components.py", line 1127, in preprocess return self.choices.index(x) ValueError: 2 is not in list
Steps to reproduce the problem
Click: Generate in either txt2img or img2img.
In img2img I was using SD Upscale on a latent upscale, but it happened on both.
What should have happened?
it should have generated an image. it errored out.
Commit where the problem happens
python: 3.10.6 • torch: 1.12.1+cu113 • xformers: 0.0.14.dev • gradio: 3.16.2 • commit: 3e0f9a75 • checkpoint: 13dfc9921f
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
LDSR | built-in | Lora | built-in | ScuNET | built-in | SwinIR | built-in | prompt-bracket-checker | built-in
Console logs
Additional information
No response