AUTOMATIC1111 / stable-diffusion-webui-tensorrt

MIT License
310 stars 20 forks source link

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm #50

Open AdamBlazer opened 1 year ago

AdamBlazer commented 1 year ago

I have this error, when i click on button Convert Unet - RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm

Can you help me to solve this please ?

wangweilovelife commented 1 year ago

Hello, How to solve this?

CaptainDoubleYou commented 12 months ago

I don't quite remember but I think I solved it by removing the space between --xformers and the equal sign set COMMANDLINE_ARGS=--xformers

See if that works for you.

DuckersMcQuack commented 9 months ago

I don't quite remember but I think I solved it by removing the space between --xformers and the equal sign set COMMANDLINE_ARGS=--xformers

See if that works for you.

Didn't do it for me sadly.