SimCLR icon indicating copy to clipboard operation
SimCLR copied to clipboard

exclude_from_weight_decay added

Open sadimanna opened this issue 4 years ago • 6 comments

sadimanna avatar Jul 06 '21 18:07 sadimanna

This modified LARS code was tested on CIFAR-10 with ResNet-50 backbone. Linear Evaluation Test Accuracy is ~85% after 100 epochs.

sadimanna avatar Jul 07 '21 09:07 sadimanna

This modified LARS code was tested on CIFAR-10 with ResNet-50 backbone. Linear Evaluation Test Accuracy is ~85% after 100 epochs.

Hey, I am not able to achieve the linear evaluation accuracy on CIFAR10 with Resnet-50 reported in paper with this repo code. After modifying the LARS code, you are getting around 85%, so may I please know what hyper-parameters (like batchsize, LR, temperature) did you use? Also, 100 epochs is for Contrastive training or linear evaluation?

Thank you.

Ektagavas avatar Jan 10 '22 14:01 Ektagavas

@Ektagavas Hi, I used a batch size of 64, LR 0.2, and temperature 0.5. 100 epochs for contrastive learning. Also, I used a pre-trained encoder. The results may differ if you train an encoder from scratch.

sadimanna avatar Jan 10 '22 15:01 sadimanna

@Ektagavas Hi, I used a batch size of 64, LR 0.2, and temperature 0.5. 100 epochs for contrastive learning. Also, I used a pre-trained encoder. The results may differ if you train an encoder from scratch.

@sadimanna Thanks for your quick response and for sharing the details! Can you pls also share from where you got your pre-trained encoder?

Thank you.

Ektagavas avatar Jan 10 '22 17:01 Ektagavas

@Ektagavas I used torchvision.models.resnet50(pretrained = True)

sadimanna avatar Jan 10 '22 18:01 sadimanna

@Ektagavas I used torchvision.models.resnet50(pretrained = True)

Oh I see, the PyTorch's pre-trained model. Cool, thanks! :)

Ektagavas avatar Jan 10 '22 18:01 Ektagavas