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

When I set CUDA_VISIBLE_DEVICES="1" not "0",The Code dose not work well. #25

Open
KyanChen opened this issue May 16, 2022 · 1 comment

Comments

@KyanChen
Copy link

I found when I set CUDA_VISIBLE_DEVICES="1",
The Code will terminal at
self.model = CustomCLIP(cfg, classnames, clip_model)
self.model.to(self.device).

The to(self.device) function will wait a long time, and will not step over.

@Kyrie10favor
Copy link

I solved it this way.
Original code

self.model.to(self.device)

New Code

device_ids = [4,5,6,7]
self.device = device_ids[0]
self.model.to(self.device)

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