open-mmlab / mmyolo

OpenMMLab YOLO series toolbox and benchmark. Implemented RTMDet, RTMDet-Rotated,YOLOv5, YOLOv6, YOLOv7, YOLOv8,YOLOX, PPYOLOE, etc.

Home Page:https://mmyolo.readthedocs.io/zh_CN/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] automatic lr schedule

fcakyon opened this issue · comments

What is the problem this feature will solve?

The original YOLOv5 repo calculates the learning rate and schedule automatically based on the given epoch number, batch size, and GPU count.

In MMYOLO, default lr is 0.01, but I assume it is calculated for 8 batch size x 8 GPU.

It is a manual effort to scale the lr in fine-tuning task when using N GPUs with M batch size per GPU.

What is the feature you are proposing to solve the problem?

Automatically calculating the lr using batch size and GPU count information.

What alternatives have you considered?

No response

@fcakyon Thank you. We will integrate this feature as soon as possible.