-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't run Automatic1111 WebUI with SDXL 1.0 #559
Can't run Automatic1111 WebUI with SDXL 1.0 #559
Comments
latest release of https://github.com/Stability-AI/generative-models 45c443b316737a4ab6e40413d7794a7f5657c19f fixes AbdBarho#559
…#560) Uses the latest release of https://github.com/Stability-AI/generative-models 45c443b316737a4ab6e40413d7794a7f5657c19f Tested with the official SDXL 1.0 model from https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/sd_xl_base_1.0.safetensors and official refiner from https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/blob/main/sd_xl_refiner_1.0.safetensors. VAE: https://huggingface.co/stabilityai/sdxl-vae/blob/main/sdxl_vae.safetensors Closes AbdBarho#558 Closes AbdBarho#559 AUTOMATIC1111/stable-diffusion-webui@68f336b --------- Co-authored-by: AbdBarho <[email protected]>
Facing this issue please help Traceback (most recent call last): |
Has this issue been opened before?
Describe the bug
It's not possible to load SDXL V1 with the latest release and after building the latest image.
Which UI
auto
Hardware / Software
Steps to Reproduce
Additional context
2023-07-27 17:59:31 changing setting sd_model_checkpoint to base_sd/sd_xl_base_1.0.safetensors: RuntimeError
2023-07-27 17:59:31 Traceback (most recent call last):
2023-07-27 17:59:31 File "/stable-diffusion-webui/modules/shared.py", line 605, in set
2023-07-27 17:59:31 self.data_labels[key].onchange()
2023-07-27 17:59:31 File "/stable-diffusion-webui/modules/call_queue.py", line 13, in f
2023-07-27 17:59:31 res = func(*args, **kwargs)
2023-07-27 17:59:31 File "/stable-diffusion-webui/webui.py", line 226, in
2023-07-27 17:59:31 shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()), call=False)
2023-07-27 17:59:31 File "/stable-diffusion-webui/modules/sd_models.py", line 556, in reload_model_weights
2023-07-27 17:59:31 load_model_weights(sd_model, checkpoint_info, state_dict, timer)
2023-07-27 17:59:31 File "/stable-diffusion-webui/modules/sd_models.py", line 286, in load_model_weights
2023-07-27 17:59:31 model.load_state_dict(state_dict, strict=False)
2023-07-27 17:59:31 File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
2023-07-27 17:59:31 raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
2023-07-27 17:59:31 RuntimeError: Error(s) in loading state_dict for LatentDiffusion:
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.4.1.proj_in.weight: copying a param with shape torch.Size([640, 640]) from checkpoint, the shape in current model is torch.Size([640, 640, 1, 1]).
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([640, 2048]) from checkpoint, the shape in current model is torch.Size([640, 768]).
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.4.1.transformer_blocks.0.attn2.to_v.weight: copying a param with shape torch.Size([640, 2048]) from checkpoint, the shape in current model is torch.Size([640, 768]).
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.4.1.proj_out.weight: copying a param with shape torch.Size([640, 640]) from checkpoint, the shape in current model is torch.Size([640, 640, 1, 1]).
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.5.1.proj_in.weight: copying a param with shape torch.Size([640, 640]) from checkpoint, the shape in current model is torch.Size([640, 640, 1, 1]).
2023-07-27 17:59:31 size mismatch for model.diffusion_model.input_blocks.5.1.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([640, 2048]) from checkpoint, the shape in current model is torch.Size([640, 768]).
...
The text was updated successfully, but these errors were encountered: