You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run an sdxl lora dreambooth training job with prior preservation. After class images are generated, it dies with the logged error, mat1 and mat2 shapes cannot be multiplied (2x2048 and 2816x1280). Instance images are 37 photos of my dog in a variety of sizes
Steps: 0%|| 0/1800 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/app/diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py", line 1793, in<module>
main(args)
File "/app/diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py", line 1572, in main
model_pred = unet(
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/accelerate/utils/operations.py", line 817, in forward
return model_forward(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/accelerate/utils/operations.py", line 805, in __call__
return convert_to_fp32(self.model_forward(*args, **kwargs))
File "/opt/conda/lib/python3.10/site-packages/torch/amp/autocast_mode.py", line 16, in decorate_autocast
return func(*args, **kwargs)
File "/app/diffusers/src/diffusers/models/unets/unet_2d_condition.py", line 1162, in forward
aug_emb = self.get_aug_embed(
File "/app/diffusers/src/diffusers/models/unets/unet_2d_condition.py", line 987, in get_aug_embed
aug_emb = self.add_embedding(add_embeds)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "/app/diffusers/src/diffusers/models/embeddings.py", line 228, in forward
sample = self.linear_1(sample)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 116, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (2x2048 and 2816x1280)
shawnrushefsky
changed the title
Dreambooth SDXL LoRA
Dreambooth SDXL LoRA - mat1 and mat2 shapes cannot be multiplied (2x2048 and 2816x1280)
Mar 6, 2024
Describe the bug
Trying to run an sdxl lora dreambooth training job with prior preservation. After class images are generated, it dies with the logged error,
mat1 and mat2 shapes cannot be multiplied (2x2048 and 2816x1280)
. Instance images are 37 photos of my dog in a variety of sizesReproduction
Logs
System Info
diffusers
version: 0.27.0.dev0Who can help?
@sayakpaul
The text was updated successfully, but these errors were encountered: