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

Modas2021_PRIME models added #57

Merged
merged 7 commits into from
Jan 18, 2022
Merged

Conversation

nmndeep
Copy link
Contributor

@nmndeep nmndeep commented Jan 13, 2022

No description provided.

@@ -341,6 +340,21 @@ def forward(self, x):
return torch.mean(torch.stack(out_list),dim=0)


class Modas2021PRIME_ResNet18(ResNet):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd rename it without _ for the sake of consistency with the existing models (e.g., like here), i.e. Modas2021PRIME_ResNet18 -> Modas2021PRIMEResNet18

@@ -185,6 +186,21 @@ def forward(self, x):

return torch.mean(torch.stack(out_list),dim=0)


class Modas2021PRIME_RN18_100(ResNet):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also for the same reason here Modas2021PRIME_RN18_100 -> Modas2021PRIMEResNet18 (and without 100 which, i guess, signifies the number of classes? but it's anyway the same for all CIFAR-100 models, so there is no need to mention it in the class name)

@@ -381,6 +397,10 @@ def forward(self, x):
lambda: WideResNet(num_classes=100, depth=34, sub_block1=True),
'gdrive_id': '1-9GAld_105-jWBLXL73btmfOCwAqvz7Y'
}),
('Modas2021PRIME_RN18_100', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also i'd remove here _100 and in the json name as well (for the same reason as above).

other than that, looks good to me! thanks a lot!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, let me know if somethings missing.

Copy link
Member

@dedeswim dedeswim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from my comment LGTM as well, thanks a lot 😊

model_info/cifar100/corruptions/unaggregated_results.csv Outdated Show resolved Hide resolved
Copy link
Member

@dedeswim dedeswim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmndeep
Copy link
Contributor Author

nmndeep commented Jan 13, 2022

Thanks for the changes! I think that for consistency we should also change the model names in the CSV files,

Done, was doing it, in that time you added the comment.

@dedeswim
Copy link
Member

Thanks, LGTM now!

@fra31
Copy link
Member

fra31 commented Jan 13, 2022

Could you please still update the readme with the model IDs? The rest looks good to me too, thanks!

@fra31 fra31 merged commit dffaa5c into RobustBench:master Jan 18, 2022
@fra31 fra31 mentioned this pull request Jan 18, 2022
4 tasks
@nmndeep nmndeep mentioned this pull request Jan 18, 2022
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

Successfully merging this pull request may close these issues.

4 participants