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

Patch features to region feature #2

Closed
kimihailv opened this issue Feb 2, 2023 · 1 comment
Closed

Patch features to region feature #2

kimihailv opened this issue Feb 2, 2023 · 1 comment

Comments

@kimihailv
Copy link

kimihailv commented Feb 2, 2023

Hello. Could you please explain how patch features from ViT are aggregated to one specific region feature? This point is confusing, because a region doesn't necessarily contain one or several whole patches.

@zengyan-97
Copy link
Owner

zengyan-97 commented Mar 21, 2023

Hi,
sorry for my late reply.
I use image_atts to indicate a region:
https://github.com/zengyan-97/X-VLM/blob/master/models/model_pretrain.py#L14

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