Skip to content

Hf export#107

Draft
gheinrich wants to merge 18 commits intomainfrom
hf-export
Draft

Hf export#107
gheinrich wants to merge 18 commits intomainfrom
hf-export

Conversation

@gheinrich
Copy link
Collaborator

No description provided.

@gheinrich gheinrich marked this pull request as draft December 10, 2024 16:23
features = features.reshape(B, math.ceil(H/patch_height), math.ceil(W/patch_width), C).permute(0, 3, 1, 2).contiguous()
else:
B, _, C = features.shape
patch_height = patch_width = 16
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this correct? Don't we have a robust property self.base_model.patch_size?

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

Successfully merging this pull request may close these issues.

2 participants