Skip to content

why training custom data use CPU instead of GPUΒ #7173

@amieruddin

Description

@amieruddin

Search before asking

Question

Hi,
i have 20k of images and already do data preparation(follow guideline by ultalytics).

I don't make any changes on any yolov5 file/hyp. I just use default setting by yolov5.

When training was started, i noticed that the training use all CPU memory (86%) rather then GPU (6%).

My device spec as below :
OS : Windows 10
GPU : NVIDIA RTX 3090
CPU : i9

Command for training : python train.py --img 640 --batch 16 --epochs 1500 --data dataset.yaml --weights yolov5s.pt --device 0

My question is why my device trained the yolo model using CPU instead of GPU? is that any line i need to make changes?
Need help to train the yolo on gpu..Thank you.

CPU_GPU Training

training epoch

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions