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

Lower accuracy on Kinetics than reported in the paper #2

Open
shanshuo opened this issue Jan 26, 2023 · 1 comment
Open

Lower accuracy on Kinetics than reported in the paper #2

shanshuo opened this issue Jan 26, 2023 · 1 comment

Comments

@shanshuo
Copy link

Thanks a lot for open-sourcing the code. I follow the instruction of SSv2 to prepare the Kinetics. Both the validation set and test set category ID starts from 0, as mentioned in the issue. On Kinetics, I follow the same parameters used in SSv2 to train:

python -u main.py kinetics RGB --arch resnet50 --num_segments 8 --lr 0.0001 --lr_steps 20 --epochs 25 --batch-size 32 --workers 2 --dropout 0.5 --root_log checkpoints/kinetics_weights/ --root_model checkpoints/kinetics_weights/ --wd 0.0005 --gpus 0 --episodes 600

I train on 1 A100 GPU with PyTorch 1.10.0. Here is the training log.csv.
I used the checkpoint best performed on the validation set ckpt24.best.pth.tar for testing. The 1-shot mean accuracy is 72.47, 1.79 lower than reported 74.26. But on SSv2 I obtain 44.30, higher than 43.82 reported in the paper. I'm not sure about the reason.
Could you please share the parameters for training the Kinetics?

@khoiucd
Copy link
Collaborator

khoiucd commented Jan 27, 2023

Hi Shou Chen,

Thank you very much for your interest in our work!

The implementation is slightly different from what was reported in the paper. For example, I have added an entropy loss term in training:

ent = -(norm_D.mean(1) * torch.log(norm_D.mean(1) + 1e-12)).sum(1)

These updates boost the performance of SSv2, higher than what was reported in the paper.

I suggest you vary the learning rate, the learning rate schedule, and the number of training epochs when training on the Kinetics dataset.

At the moment, I cannot provide the parameters for the Kinetics dataset for you. I will examine the code and send them to you as soon as possible.

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