cpu与gpu训练转换

python train.py --weights yolov5s.pt --cfg models/yolov5s.yaml --data data/myvoc.yaml --epoch 200 --batch-size 8 --img 640 --device cpu

python train.py --weights yolov5s.pt --cfg models/yolov5s.yaml --data data/myvoc.yaml --epoch 200 --batch-size 8 --img 640 --device 0

https://huaweicloud.csdn.net/63806a6edacf622b8df87558.html

posted @ 2025-09-09 08:14  txwtech  阅读(3)  评论(0)    收藏  举报