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

Reproducing source-only results on DomainNet #1

Closed
robbiejones96 opened this issue May 2, 2021 · 4 comments
Closed

Reproducing source-only results on DomainNet #1

robbiejones96 opened this issue May 2, 2021 · 4 comments

Comments

@robbiejones96
Copy link

Hi SENTRY authors, congrats on the impressive results from your recent paper and thank you for sharing your code with us! As a starting point I am trying to reproduce the DomainNet source-only Sketch -> Real results, which in your paper is listed as 77% average per-class accuracy. I'm currently running this command with your repo to attempt to reproduce this performance:

python train.py --id source-only-domainnet --source sketch --target real --img_dir <local path to DomainNet> --LDS_type natural --use_cuda True --cnn ResNet50FS --optimizer SGD --lr 1e-2 --wd 5e-4 --num_epochs 100 --batch_size 16 --temperature 0.05 --l2_normalize True

All the hyperparameters other than num_epochs I believe I have taken from your paper, but I may have misread/missed something. The current target average per-class accuracy I'm getting is 66%. Would you be able to share the exact command/hyperparameters you used to obtain the 77% transfer accuracy from sketch to real? Thank you so much!

@tarun005
Copy link

Using similar hyperparameters and software versions given in code, I was able to reproduce the result.

image

@virajprabhu
Copy link
Owner

Great, glad you could reproduce it!

@robbiejones96
Copy link
Author

Cool! @tarun005 Would you be able to paste the command you ran here, and/or compare it to the one that I posted in my original issue? Thanks for sharing your update!

@robbiejones96
Copy link
Author

Nevermind, it was silly of me to manually input the hyperparameters instead of running from the sentry.yml config. This has made all the results reproducible. Cheers!

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

3 participants