Skip to content
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 #12539

Closed
1 task done
silvern1n opened this issue Aug 13, 2023 · 1 comment
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@silvern1n
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

I am getting this error when trying to use a LoRA with SDXL. It works fine unless I try to add a LoRA to the prompt then returns TypeError: expected Tensor as element 0 in argument 0, but got tuple.
Looking at the log, it seems to be having an error loading the embeddings and LoRAs

Error loading embedding dan_mumford.safetensors

Screenshot 2023-08-13 172825

Steps to reproduce the problem

  1. Go to Lora
  2. Add Lora from menu
  3. Click generate

What should have happened?

Image generation

Version or Commit where the problem happens

007ecfb

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 ?

Microsoft Edge

Command Line Arguments

--opt-sdp-attention --opt-channelslast --api --xformers --medvram --no-half-vae

List of extensions

Screenshot 2023-08-13 174055

Console logs

https://pastebin.com/7jGL3tAb

Additional information

No response

@silvern1n silvern1n added the bug-report Report of a bug, yet to be confirmed label Aug 13, 2023
@catboxanon
Copy link
Collaborator

Duplicate of #12523

@catboxanon catboxanon marked this as a duplicate of #12523 Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants