deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.33k stars 5.41k forks source link

arcface_torch: There are periodic, sudden drops in losses #2266

Open SuyueLiu opened 1 year ago

SuyueLiu commented 1 year ago

image

backbone: mbf loss: arcface dataset: glint (msra + asian celeb) lr = 0.1 wd = 1e-4 fp16=True

as shown in the figure, there are periodic, sudden drops in losses, I am curious why this happens.

Sunshine066 commented 1 year ago

Ha ha, I have the same question as you. But my cyclical decline is followed by a small sharp rise followed by a steady decline

SuyueLiu commented 1 year ago

Ha ha, I have the same question as you. But my cyclical decline is followed by a small sharp rise followed by a steady decline

Same as you, did you solve this problem?

411104983 commented 1 year ago

The same is true for the loss when I train the VIT model, but the final result does not seem to be worse

Sunshine066 commented 1 year ago

The same is true for the loss when I train the VIT model, but the final result does not seem to be worse

Yes, it doesn't make any difference to the final result, but I wonder how it works? I don't have this problem when I train other networks

Sunshine066 commented 1 year ago

The loss changes periodically with the epoch. At the beginning of each epoch, the loss drops precipitously and increases slowly in the later training process. I do not understand the reason for this phenomenon.Haha,is there expert know the reason?

HHCorp commented 1 year ago

The loss changes periodically with the epoch. At the beginning of each epoch, the loss drops precipitously and increases slowly in the later training process. I do not understand the reason for this phenomenon.Haha,is there expert know the reason?

377 This may answer your question.