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

I train ResNet18 in Cifar100 #3

Closed
dreamer121121 opened this issue Nov 3, 2021 · 5 comments
Closed

I train ResNet18 in Cifar100 #3

dreamer121121 opened this issue Nov 3, 2021 · 5 comments

Comments

@dreamer121121
Copy link

I train ResNet18 in Cifar100 with augmax and without augmax but i find that i can got 77.5% accuracy without augmax ,while i can only got 76.3% with augmax, can u give some explainations?

@htwang14
Copy link
Contributor

htwang14 commented Nov 4, 2021

Hi! What Lambda and steps values did you use? In the paper, we mentioned that on CIFAR100 with ResNet18 we use Lambda=1.0. steps should always be 10 on CIFAR10/100 and Tiny ImageNet. I've updated README in 8ca00c0 to reflect these details. Sorry for the confusion.

@htwang14 htwang14 closed this as completed Nov 6, 2021
@dreamer121121
Copy link
Author

Hi! What Lambda and steps values did you use? In the paper, we mentioned that on CIFAR100 with ResNet18 we use Lambda=1.0. steps should always be 10 on CIFAR10/100 and Tiny ImageNet. I've updated README in 8ca00c0 to reflect these details. Sorry for the confusion.
Thanks for ur reply, i set the lambda=1.0 then i got ur results in CIfar100. but, i have another question, how to choose the lambda when using the augmax in different datasets?

@htwang14
Copy link
Contributor

htwang14 commented Nov 8, 2021

My suggestion is to first try Lambda~10. Usually AugMax gets similar performance with different Lambda values. The experiment on CIFAR100 with ResNet18 is the only exception I encountered, where smaller Lambda is preferred. My assumption is that ResNet18 has limited model capacity, so adding too much regularizations (by using a large Lambda) make the model over-smooth and hurts performance.

@dreamer121121
Copy link
Author

My suggestion is to first try Lambda~10. Usually AugMax gets similar performance with different Lambda values. The experiment on CIFAR100 with ResNet18 is the only exception I encountered, where smaller Lambda is preferred. My assumption is that ResNet18 has limited model capacity, so adding too much regularizations (by using a large Lambda) make the model over-smooth and hurts performance.

I want to apply Augmax to semantic segmentation, can you give me some advise?

@htwang14
Copy link
Contributor

I think AugMax is directly appliable on semantic segmentation tasks: just replace the classification loss with dense prediction loss (both the cross-entropy and the consistency loss should be replaced with a dense prediction version). As for benchmark datasets, you can use this one https://github.com/bethgelab/robust-detection-benchmark, which adds corruptions on segmentation/detection datasets. Although it's named as object detection, I think is can also be used for segmentation (at least Cityscapes and Pascal VOC have segmentation annotations).

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