Skip to content

Modas2021_PRIME models added#57

Merged
fra31 merged 7 commits intoRobustBench:masterfrom
nmndeep:model_update
Jan 18, 2022
Merged

Modas2021_PRIME models added#57
fra31 merged 7 commits intoRobustBench:masterfrom
nmndeep:model_update

Conversation

@nmndeep
Copy link
Contributor

@nmndeep nmndeep commented Jan 13, 2022

No description provided.

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

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)

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 😊

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