lllyasviel / Omost

Your image is almost there!
Apache License 2.0
6.69k stars 401 forks source link

Computers with dual graphics card configurations will report errors when run #95

Open Endygao25 opened 2 weeks ago

Endygao25 commented 2 weeks ago

It has been deployed locally. However, I encountered a technical problem, my computer is installed with dual graphics cards, so it will report an error when running, prompting: "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! "

I tried to change a command line in the file ""memory_management.py"": gpu = torch.device('cuda') to gpu = torch.device('cuda:0'). But still no effect.

How to remedy this situation? I'm looking forward to hearing from you!