deepinsight / deepinsight/insightface

[arcface torch] Loss and learning rate

Open
#1,974 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

As it is designed, learning rate raises up linearly in the warmup stage and decreases exponentially in training stage.
During warmup stage, the loss would first decrease before it increases with the growing of learning rate.
The optimal loss pattern is that it will reach minima just at the time when learning rate finishes warming up.
However, recently I found the loss bouncing back so quick when I transferred the training from a 8gpu machine to a 4gpu machine (the sum cuda memory is approximately same).
Is this unexpected loss pattern related to number of GPUs?
Are there any parameters I could adjust?
![image](https://user-images.githubusercontent.com/62649623/163515103-1fe3bf5b-6571-4953-bf0e-f2bafe1192f6.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.