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

fine-tune imagenet21k_ViT-B_16.npz with pre_logits? #10

Open
4vicii opened this issue Mar 10, 2024 · 0 comments
Open

fine-tune imagenet21k_ViT-B_16.npz with pre_logits? #10

4vicii opened this issue Mar 10, 2024 · 0 comments

Comments

@4vicii
Copy link

4vicii commented Mar 10, 2024

hi , im really preciated by the work. but i have a question about "pre_logits". Did you set the "representation_size" as defualt None when you finetune imagenet21k_ViT-B_16.npz with imagenet 1k?

i mean the code about models.py

if representation_size is not None:
  x = nn.Dense(x, representation_size, name='pre_logits')
  x = nn.tanh(x)
else:
  x = IdentityLayer(x, name='pre_logits')
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