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

Is the encoder head not trainable? #45

Open
alsdudrla10 opened this issue Dec 19, 2024 · 0 comments
Open

Is the encoder head not trainable? #45

alsdudrla10 opened this issue Dec 19, 2024 · 0 comments

Comments

@alsdudrla10
Copy link

Thank you for contributing to the community with your excellent research and code sharing. I have a question regarding the initialization of the projection head.

It appears that the head of the pre-trained encoder (e.g., model.head = build_mlp(3, hidden_dim, 4096, proj_dim) in line 115 of rcg/pretrained_enc/models_pretrained_enc.py) is randomly initialized and not trained. However, the checkpoint pretrained_enc_ckpts/mocov3/vitb.pth.tar seems to include the encoder head as well. Was the head in pretrained_enc_ckpts/mocov3/vitb.pth.tar also randomly initialized? Was there an intentional reason for setting the randomly initialized head to remain untrained?

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