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

run.py parameter doubts #66

Open
Dysdjkl opened this issue Jul 13, 2023 · 1 comment
Open

run.py parameter doubts #66

Dysdjkl opened this issue Jul 13, 2023 · 1 comment

Comments

@Dysdjkl
Copy link

Dysdjkl commented Jul 13, 2023

If I use my own data, do I need to change the category of out-dim in the run.py to the number of categories of my own data?

@CielAl
Copy link

CielAl commented Sep 29, 2023

I believe the out-dim is just the dimension of the feature representation produced by the projection head.

The reason the authors use out_dim in the models.resnet18(pretrained=False, num_classes=out_dim) is only because in the implementation of resnet18 or resnet50 in torchvision, the num_classes will setup the out put size of the final linear layer (nn.Linear), not because it has anything to do with the number of your categories. I mean, after all, it is "self-supervised" learning :p.

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

2 participants