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

About initialization and visualization of group tokens #36

Open
o0t1ng0o opened this issue Jun 24, 2022 · 1 comment
Open

About initialization and visualization of group tokens #36

o0t1ng0o opened this issue Jun 24, 2022 · 1 comment

Comments

@o0t1ng0o
Copy link

Hi, @xvjiarui @shalinidemello
Thank you for presenting this good work.

I have some questions about the group tokens.
It seems that group_token is set as None for initialization in line 839 ./models/group_vit.py.
So how to make the group_token learnable? Why do not set it as a learnable parameters?

What's more, how do we get the segmentation mask through the model? It seems that the "class GroupViT" of ./models/group_vit.py only return the image features?

These make me very confused.
Could you please help me to solve my confusion?

@xvjiarui
Copy link
Contributor

Hi @o0t1ng0o

Sorry for the late reply.
The group token is initialized here.

You may refer to this file for how to get the segmentation mask.

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