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 run the test.py in docker, one issue appeared. #412

Open
s2244521 opened this issue Mar 14, 2023 · 2 comments
Open

When I run the test.py in docker, one issue appeared. #412

s2244521 opened this issue Mar 14, 2023 · 2 comments

Comments

@s2244521
Copy link

When I run test.py (CSP) in docker, there is an issue appeared.
Traceback (most recent call last):
File "test.py", line 330, in
save_conf=opt.save_conf,
File "test.py", line 55, in test
device = select_device(opt.device, batch_size=batch_size)
File "/yolo/yolov4/utils/torch_utils.py", line 47, in select_device
assert torch.cuda.is_available(), 'CUDA unavailable, invalid device %s requested' % device # check availablity
AssertionError: CUDA unavailable, invalid device 0 requested
I don't know how to solve it, did someone meet this issue?

@Qiqiguaiguaide
Copy link

+1

@s2244521
Copy link
Author

hi @Qiqiguaiguaide
I solved this problem, I changed the device to cpu and it works. I think it because my CUDA version and pytorch version can not match the environment setting of this code. My CUDA version is 12.

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