Skip to content

[question] About batch_size and learning rate in references/detection/train.py? #1230

@wangg12

Description

@wangg12

Hi @fmassa ,
In references/detection/train.py, does the batch_size refer to images_per_gpu?
And is lr corresponding to the total batch size images_per_gpu x $NGPU?

Accordingly, if I want to use the linear scaling method for setting the learning rate for single GPU, should I set args.lr = lr / $NGPU and keep args.batch_size = images_per_gpu?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions