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

whats cifar_head? #5

Closed
steveguang opened this issue Sep 7, 2021 · 1 comment
Closed

whats cifar_head? #5

steveguang opened this issue Sep 7, 2021 · 1 comment

Comments

@steveguang
Copy link

Hi, @AndrewAtanov . Wondering what cifar_head means. And why is conv1 needed to be added? Can you explain? Thanks!
if cifar_head:
self.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1, bias=False)

@AndrewAtanov
Copy link
Owner

Hi @steveguang! The first layer in the standard ResNet50 is 7x7 Conv with stride 2, which would greatly reduce the spatial information of a 32x32 cifar10 image, so it's replaced with 3x3 Conv in the original simclr implementation, which we follow. Refer to Appendix B.9 in [https://arxiv.org/pdf/2002.05709.pdf].

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

3 participants