deforum / deforum/sd-webui-deforum
[Bug]: Errors when clicking "loadallsettings" after "run from settings file" settings.txt
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 407
- PR merge metrics
- No merged PRs in 30d
Description
### 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
1. go to deforum tab
2. Click Run
3. Click batch Mode & resume
4. Click Enable batch mode
5. Click to uplod / locate the settings.txt file.
6. Then on the right I click load all settings
7. 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](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/22bcc7be428c94e9408f589966c2040187245d81)
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
[20230427234836_settings.txt](https://github.com/deforum-art/deforum-for-automatic1111-webui/files/11356929/20230427234836_settings.txt)
### Webui core settings
[ui-config.json.txt](https://github.com/deforum-art/deforum-for-automatic1111-webui/files/11356955/ui-config.json.txt)
### Console logs
```Shell
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
"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](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/22bcc7be428c94e9408f589966c2040187245d81) • checkpoint: [4199bcdd14](https://google.com/search?q=4199bcdd147e11328d5f3560301d5a7ab4ac7eeefbf49dc3eb663cb3e772b9ac)
version 2.3b
Contributor guide
Assessment
This issue has not been assessed yet.