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

Which type of pre-trained ResNET was used? #1

Open
jihwankwak opened this issue Oct 20, 2022 · 0 comments
Open

Which type of pre-trained ResNET was used? #1

jihwankwak opened this issue Oct 20, 2022 · 0 comments

Comments

@jihwankwak
Copy link

Hello thanks for your hard work :)
I read the ICML 2019 version of your paper and I came up with some questions about implementation of pre-trained ResNET-18 model.

FIrst ot all, is pre-tranining for ResNET-18 on ImageNET omitted in your code?
I saw in the paper that the pre-training was done on ImageNET which only has non overlapping classes with CIFAR100. I was looking for your pre-training implementations (Augmentation, epochs, lr, and etc.) in the paper and code (Maybe it might be my bad) but, currently, I am having hard time finding it.
Also, below line in your code using pretranied model from torchvision even confuses me.

def __init__(self, total_classes, classes_per_task, pretrained=False):
super(ResNet, self).__init__()
resnet = torchvision.models.resnet18(pretrained=pretrained)
for param in resnet.parameters():
param.requires_grad = True
self.net = resnet
self.net.fc = torch.nn.Linear(resnet.fc.in_features, total_classes)
self.classes_per_task = classes_per_task

So, can you specify your pre-training implementation of your ResNET-18 model on ImageNET with less classes?

Thanks again :)

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

1 participant