Invalid CUDA 'device=0' requested. Use 'device=cpu' or pass valid CUDA device(s) if available, i.e. 'device=0' or 'device=0,1,2,3' for Multi-GPU.

使用Yolo检测图像时指定了device=0报错: 123456789101112131415161718Ultralytics YOLOv8.1.34 🚀 Python-3.9.19 torch-2.0.1+cpuTraceback (...

2024