Stable-textual-inversion_win icon indicating copy to clipboard operation
Stable-textual-inversion_win copied to clipboard

Stuck on this error.

Open hydropix opened this issue 2 years ago • 6 comments

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 index in method wrapper__index_select)

Any idea ?

hydropix avatar Sep 13 '22 20:09 hydropix

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 index in method wrapper__index_select)

Any idea ?

are you using a gpu ? local or colab?

nicolai256 avatar Sep 13 '22 20:09 nicolai256

local with a 3090ti

hydropix avatar Sep 13 '22 21:09 hydropix

local with a 3090ti

hmm weird, this repo is now being used in VoC https://softology.pro/voc.htm so u could do it in there, will be much easier for you too its a local gui with a huge amount of scripts so maybe try that :)

nicolai256 avatar Sep 14 '22 21:09 nicolai256

Update : I had to change the --gpus 0, to --gpus=1 and it started working. Eating a lot of VRAM now

--Same error-- and the VoC download is 404 now. Also using a Nvidia 3090ti on a intel platform.

ndemar avatar Sep 15 '22 01:09 ndemar

Great, I had seen on Reddit that you have to indicate gpus=1, but I didn't think the "=" was necessary! It works now! Thanks a lot

hydropix avatar Sep 15 '22 07:09 hydropix

yeah the --gpus thing is different for everyone for some it's 0 for some it's 1, no idea why

nicolai256 avatar Sep 15 '22 17:09 nicolai256