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

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

Open
Endygao25 opened this issue Jun 14, 2024 · 1 comment

Comments

@Endygao25
Copy link

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!

@ayuLiao
Copy link

ayuLiao commented Jul 1, 2024

you need change like this.

image

I don't have time to submit a PR, you can revise it by yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants