Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sinusoidal Train/Val Accuracy #37

Open
leekezar opened this issue Oct 26, 2022 · 1 comment
Open

Sinusoidal Train/Val Accuracy #37

leekezar opened this issue Oct 26, 2022 · 1 comment

Comments

@leekezar
Copy link

leekezar commented Oct 26, 2022

I'm noticing that the transformer and the SL-GCN architectures, while learning on WLASL2000, have an accuracy curve that resembles a sine curve with period of about 20 epochs and amplitude of about 5-10%. I am using the example config provided in the repo, and verified that the batches are being shuffled. I have also played around with logging on_step=True in case this is an artifact of torch.nn.log, but that didn't help either. Any ideas why this is happening?

@GokulNC
Copy link
Member

GokulNC commented Oct 27, 2022

Hello @leekezar !

This is due to the CosineAnnealing LR Scheduler:

scheduler:
name: CosineAnnealingLR
params:
last_epoch: -1
T_max: 10

The oscillation usually becomes negligible after a good no. of epochs.
But you can also remove this from the config. Shouldn't affect the results too much I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants