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

vit head #2

Merged
merged 5 commits into from
Jan 19, 2022
Merged

vit head #2

merged 5 commits into from
Jan 19, 2022

Conversation

lauragustafson
Copy link
Contributor

test_load.py is updated with vit h/14 IN model and load successfully

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 19, 2022
@@ -270,6 +342,11 @@ def __init__(
self.seq_length = seq_length
self.init_weights()

if num_classes > 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if num_classes is not None

Comment on lines 393 to 395
if self.head is None:
return x
x = self.head(x)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if self.head is not None:
x = self.head(x)

@lauragustafson lauragustafson merged commit ed3d044 into main Jan 19, 2022
@mannatsingh mannatsingh deleted the vit_head branch January 19, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants