You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: