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

in eval.py RuntimeError: legacy constructor expects device type: cpu but device type: cuda was passed #102

Open
kwonseungchan opened this issue Jun 20, 2024 · 0 comments

Comments

@kwonseungchan
Copy link

channge the code in utils.py 235 line

original_ind = torch.LongTensor(range(true_class_boxes.size(0)), device='cuda')[true_class_images == this_image][ind]
==>
original_ind = torch.tensor(range(true_class_boxes.size(0)), dtype=torch.long, device='cuda')[true_class_images == this_image][ind]

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