-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[Bug]: TypeError: expected Tensor as element 0 in argument 0, but got tuple #12523
Closed
1 task done
Labels
bug
Report of a confirmed bug
Comments
This is due to a change in this place:
coming from commit bd4da44. The While waiting for a fix, you can change these lines - stable-diffusion-webui/extensions-builtin/Lora/networks.py Lines 342 to 344 in 007ecfb
updown_q, ex_bias = module_q.calc_updown(self.in_proj_weight)
updown_k, ex_bias = module_k.calc_updown(self.in_proj_weight)
updown_v, ex_bias = module_v.calc_updown(self.in_proj_weight) and also line
updown_out, ex_bias = module_out.calc_updown(self.out_proj.weight) |
catboxanon
added
bug
Report of a confirmed bug
and removed
bug-report
Report of a bug, yet to be confirmed
labels
Aug 13, 2023
This was referenced Aug 13, 2023
4 tasks
Fixed by #12543 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
What happened?
When using any SDXL lora in current dev branch I get this error;
'TypeError: expected Tensor as element 0 in argument 0, but got tuple'
Images are generated with SDXL checkpoints, however all loras produce this error.
Steps to reproduce the problem
What should have happened?
Image generation should be as normal with lora loaded and weights applied.
Version or Commit where the problem happens
version: 1.5.1
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
xformers
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of extensions
none
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: