YOLO-v5
YOLO-v5 copied to clipboard
test
trafficstars
您好!
test使用GPU,bug,是代码不支持吗~
请检查你的pytorch可以正常调用GPU,怀疑你的pytorch编译的CUDA版本和你机器装的CUDA版本不一致,导致pytorch不能使用GPU
import torch
print(torch.cuda.is_available())
应该是返回:True 的请自查
请指定使用的device
请指定使用的device
问题解决了,model和x都是cuda,报错是因为使用了htop库,我也不知道为什么会有这个库,用pip3 uninstall删掉就好了。 参考 https://github.com/ultralytics/yolov5/issues/210 感谢作者回复~