Machine-Learning-Collection icon indicating copy to clipboard operation
Machine-Learning-Collection copied to clipboard

DEVICE = "cuda" if torch.cuda.is_available else "cpu" not working on cpu machine

Open DanlanChen opened this issue 3 years ago • 0 comments

https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/object_detection/YOLO/train.py

change that line to DEVICE = "cuda" if torch.cuda.is_available() else "cpu" works on cpu machine

DanlanChen avatar Apr 19 '22 12:04 DanlanChen