sthalles / SimCLR

PyTorch implementation of SimCLR: A Simple Framework for Contrastive Learning of Visual Representations
https://sthalles.github.io/simple-self-supervised-learning/
MIT License
2.19k stars 457 forks source link

The absence of g() #63

Closed hcmdgh closed 1 year ago

hcmdgh commented 1 year ago

In the original paper, there are f() and g(), and f() is an encoder and g() is a projector. However in this code, there is only f().

Xiaohan-Chen commented 1 year ago

You can find the f() function in line 18 of file resnet_simclr.py

hcmdgh commented 1 year ago

Thanks a lot.