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

help reproduce AffectNet and FERplus #21

Open
AltoriaDD opened this issue Oct 22, 2023 · 2 comments
Open

help reproduce AffectNet and FERplus #21

AltoriaDD opened this issue Oct 22, 2023 · 2 comments

Comments

@AltoriaDD
Copy link

thanks for your great work!
I can't reproduce the accuracy on both the AffectNet and FERplus datasets as mentioned in the paper. Can you provide some details of the experiment, such as hyperparameters and random number seed settings? Thank you very much.

@zyh-uaiaaaa
Copy link
Owner

Hi, we carry out experiments on FERPlus with 7 basic expression classes, same as RAF-DB. As for AffectNet, we conduct pre-processing on the data and use a balanced sampler during the training. We refer you to the following repository for the data pre-processing. https://github.com/HSE-asavchenko/face-emotion-recognition

@AltoriaDD
Copy link
Author

Are Affectnet and ferplus both using the same learning rate and lr_scheduler as rafdb?
And, I tried the performance of "torchsampler.ImbalancedDatasetSampler" on rafdb, but I found that the balanced sampler doesn't seem to work, and accuracy even decreased somewhat.

train_loader = torch.utils.data.DataLoader(train_dataset,
                                           sampler=ImbalancedDatasetSampler(train_dataset),
                                           batch_size=args.batch_size,
                                           shuffle=False,
                                           num_workers=args.workers,
                                           pin_memory=True)

Which balanced sampler are you using?

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