insightface icon indicating copy to clipboard operation
insightface copied to clipboard

arcface_torch: There are periodic, sudden drops in losses

Open SuyueLiu opened this issue 1 year ago • 6 comments

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.

SuyueLiu avatar Mar 20 '23 13:03 SuyueLiu

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

Sunshine066 avatar Mar 22 '23 11:03 Sunshine066

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?

SuyueLiu avatar Mar 22 '23 11:03 SuyueLiu

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

411104983 avatar Mar 23 '23 09:03 411104983

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 avatar Mar 24 '23 01:03 Sunshine066

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?

Sunshine066 avatar Mar 24 '23 01:03 Sunshine066

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.

HHCorp avatar Apr 26 '23 07:04 HHCorp