Closed mraggi closed 11 months ago
i cannot reproduce the problem:
--safe
so there is no possible extensions interferenceI downloaded the models from hugginface from within the app (it says safetensors...). I've disabled free-u and hypertile, started with --safe and I get the exact same message when doing the refiner steps.
and how are you loading it? this may be that you're trying to load refiner model as base model.
Hi.
Just an update: I downloaded the .safetensors one and told sd next to use that one and that one works fine. So the one that doesn't work was the one downloaded automatically from within the app.
Weird.
weird. but good lead, i'll check.
i tracked it down, fixed in dev branch.
Hi, I am also getting this problem. I've tried all the above checks (inc. starting with --safe). I downloaded the base and refiner models from HF with the links from the SDXL installation in the wiki.
But I get the same error:
ValueError: Model expects an added time embedding vector of length 2560, but a vector of 2816 was created. Please make sure to disable
`requires_aesthetics_score` with `pipe.register_to_config(requires_aesthetics_score=False)` to make sure `target_size` (768, 1152) is correctly
used by the model.
Here is the interface showing settings and error, just for reference:
Please Note: I was unable to run SDXL models at all until I checked 'Enable model CPU offload (--medvram)'. Previously this just seemed to time out with 99% GPU memory usage.
I am running on a 4090 with 13900k and 64GB ram.
I've included my --safe --debug output for extra info.
(vlad) H:\airt\vladdiffusion>call .\webui.bat --safe --debug
Using VENV: H:\airt\vladdiffusion\venv
16:23:03-539673 INFO Starting SD.Next
16:23:03-541673 INFO Logger: file="H:\airt\vladdiffusion\sdnext.log" level=DEBUG size=65 mode=create
16:23:03-542673 INFO Python 3.10.10 on Windows
16:23:03-636243 INFO Version: app=sd.next updated=2023-12-29 hash=f4d4f8da url=https://github.com/vladmandic/automatic.git/tree/master
16:23:04-037299 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 183 Stepping 1, GenuineIntel system=Windows
release=Windows-10-10.0.22621-SP0 python=3.10.10
16:23:04-038299 DEBUG Setting environment tuning
16:23:04-039299 DEBUG Cache folder: C:\Users\me\.cache\huggingface\hub
16:23:04-040298 DEBUG Torch overrides: cuda=False rocm=False ipex=False diml=False openvino=False
16:23:04-041299 DEBUG Torch allowed: cuda=True rocm=True ipex=True diml=True openvino=True
16:23:04-045298 INFO nVidia CUDA toolkit detected: nvidia-smi present
16:23:04-077299 WARNING Modified files: ['vladdiffusion.code-workspace']
16:23:04-105299 DEBUG Repository update time: Fri Dec 29 14:32:52 2023
16:23:04-106301 INFO Startup: standard
16:23:04-107299 INFO Verifying requirements
16:23:04-115301 INFO Verifying packages
16:23:04-116302 INFO Verifying submodules
16:23:05-903076 DEBUG Submodule: extensions-builtin/sd-extension-chainner / main
16:23:05-949143 DEBUG Submodule: extensions-builtin/sd-extension-system-info / main
16:23:05-995144 DEBUG Submodule: extensions-builtin/sd-webui-agent-scheduler / main
16:23:06-040113 DEBUG Submodule: extensions-builtin/sd-webui-controlnet / main
16:23:06-089051 DEBUG Submodule: extensions-builtin/stable-diffusion-webui-images-browser / main
16:23:06-133564 DEBUG Submodule: extensions-builtin/stable-diffusion-webui-rembg / master
16:23:06-179564 DEBUG Submodule: modules/k-diffusion / master
16:23:06-224075 DEBUG Submodule: modules/lora / main
16:23:06-271075 DEBUG Submodule: wiki / master
16:23:06-297075 DEBUG Register paths
16:23:06-362588 DEBUG Installed packages: 219
16:23:06-364204 DEBUG Extensions all: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler',
'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg']
16:23:06-491717 DEBUG Running extension installer: H:\airt\vladdiffusion\extensions-builtin\sd-extension-system-info\install.py
16:23:06-737247 DEBUG Running extension installer: H:\airt\vladdiffusion\extensions-builtin\sd-webui-agent-scheduler\install.py
16:23:06-981738 DEBUG Running extension installer: H:\airt\vladdiffusion\extensions-builtin\sd-webui-controlnet\install.py
16:23:07-219109 DEBUG Running extension installer: H:\airt\vladdiffusion\extensions-builtin\stable-diffusion-webui-images-browser\install.py
16:23:07-462252 DEBUG Running extension installer: H:\airt\vladdiffusion\extensions-builtin\stable-diffusion-webui-rembg\install.py
16:23:07-713106 INFO Extensions enabled: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler',
'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg']
16:23:07-713969 INFO Verifying requirements
16:23:07-728696 DEBUG Setup complete without errors: 1703866988
16:23:07-729697 INFO Running in safe mode without user extensions
16:23:07-733697 INFO Extension preload: {'extensions-builtin': 0.0}
16:23:07-735696 DEBUG Starting module:
I got this error too on latest main
and dev
branches, but enabling Require aesthetics score
in the config fixed it.
Issue Description
With latest git pull, SDXL refiner (with diffusers) stopped working. The base model works correctly, does the steps, but then when the refiner starts I get this message:
But requires_aesthetics_score is disabled. I tried enabling it, same result.
Version Platform Description
Ubuntu, linux, kernel 6.2.0-35-generic, nvidia driver 535. Python 3.10.12 on Linux
Version: app=sd.next updated=2023-12-12 hash=69bda18e url=https://github.com/vladmandic/automatic/tree/master
13:46:54-930236 INFO Platform: arch=x86_64 cpu=x86_64 system=Linux release=6.2.0-35-generic python=3.10.12
Relevant log output
Backend
Diffusers
Branch
Master
Model
SD-XL
Acknowledgements