sd-webui-deforum
sd-webui-deforum copied to clipboard
[Bug]: Errors when clicking "loadallsettings" after "run from settings file" settings.txt
Have you read the latest version of the FAQ?
- [X] I have visited the FAQ page right now and my issue is not present there
Is there an existing issue for this?
- [X] 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?
- [X] I have Deforum updated to the lastest version and I still have the issue.
What happened?
When I go to deforum > run> enable batch mode> locate the settings.txt file. Then on the right I click load all settings and thats when I get errors.
This is what I see in the console:
Steps to reproduce the problem
- go to deforum tab
- Click Run
- Click batch Mode & resume
- Click Enable batch mode
- Click to uplod / locate the settings.txt file.
- Then on the right I click load all settings
- Error
What should have happened?
I was told I can load the settings file after choosing it from "run from settings file". The expectation is that it would load all of the values into the UI so that I can edit them and view them easier.
WebUI and Deforum extension Commit IDs
webui commit id - commit: 22bcc7be deforum exten commit id - ba9c8540 (Fri Apr 28 11:51:43 2023)
On which platform are you launching the webui with the extension?
Windows 11
Deforum settings
Webui core settings
Console logs
PS C:\Users\likwi\stable-diffusion-webui> .\webui-user.bat
venv "C:\Users\likwi\stable-diffusion-webui\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)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Installing requirements 1 for Infinite-Zoom
Launching Web UI with arguments: --api
No module 'xformers'. Proceeding without it.
Loading weights [4199bcdd14] from C:\Users\likwi\stable-diffusion-webui\models\Stable-diffusion\revAnimated_v122.safetensors
Creating model from config: C:\Users\likwi\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: C:\Users\likwi\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 6.9s (load weights from disk: 0.2s, create model: 0.5s, apply weights to model: 3.2s, apply half(): 0.6s, load VAE: 0.4s, move model to device: 0.9s, load textual inversion embeddings: 1.0s).
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Startup time: 20.7s (import torch: 4.5s, import gradio: 2.7s, import ldm: 1.0s, other imports: 2.6s, setup codeformer: 0.2s, load scripts: 1.2s, load SD checkpoint: 7.4s, create ui: 0.7s, gradio launch: 0.3s, scripts app_started_callback: 0.1s).
reading custom settings from deforum_settings.txt
Traceback (most recent call last):
File "C:\Users\likwi\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\likwi\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1078, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\likwi\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1012, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\likwi\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 2511, in postprocess
return [
File "C:\Users\likwi\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 2513, in <listcomp>
"orig_name": Path(file).name,
File "C:\Users\likwi\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 960, in __new__
self = cls._from_parts(args)
File "C:\Users\likwi\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 594, in _from_parts
drv, root, parts = self._parse_args(args)
File "C:\Users\likwi\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 578, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not _TemporaryFileWrapper
Additional information
I was told this might happen when trying to load a much older settings file so grabbed a settings file from a known good recent run, selected the file and then clicked "load all settings" on the right and still got errors
I've tested this on two different machines with settings files from runs that successfully ran as early as yesterday.
python: 3.10.6 • torch: 1.13.1+cu117 • xformers: N/A • gradio: 3.23.0 • commit: 22bcc7be • checkpoint: 4199bcdd14
version 2.3b
This issue has been closed due to incorrect formatting. Please address the following mistakes and reopen the issue:
- The issue title should be concise and contain no more than 13 words.
Please re-open
Thanks for addressing your formatting mistakes. The issue has been reopened now.
@likwidtek just tested, works fine for me. Loaded your setting file in batch mode, ran it until mid-way, stopped, loaded video settings - all good.
What happens when you load the settings prior to running it? I didn't have it run, then stop, then click load all settings
NP too. Works.
More information. It seems that no matter if it's a default settings file or a previously ran file, I always get an error when using the file loader shown here. If I drag and drop OR click to upload,
I will get an error after clicking Load all settings:
But if I refresh the tab, copy and paste the path into the settings file field, press "load all setting" it will load correctly
It will error each time when I use the gui drag and drop or file selector. Replicated on two separate windows 11 computers.