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

Asking about the class token. #16

Open
kona419 opened this issue Dec 11, 2023 · 2 comments
Open

Asking about the class token. #16

kona419 opened this issue Dec 11, 2023 · 2 comments

Comments

@kona419
Copy link

kona419 commented Dec 11, 2023

Hello,
https://github.com/zbwxp/SegVit/blob/85616388cd8983e2d4daafd971540b210e956666/configs/_base_/models/seg_vit-b16.py#L24C9-L24C23

I found that you set
with_cls_token=False.
Is this means that ViT encoder in your model do not use class token, and use it for the decoder(ATM)?

@AkideLiu
Copy link
Collaborator

We used the feature embedding from the VIT encoder without using the class token. Alternatively, we initialized a class embedding in the decoder in

outputs_class = self.class_embed(qs)
out = {"pred_logits": outputs_class[-1]}

@kona419
Copy link
Author

kona419 commented Dec 26, 2023

We used the feature embedding from the VIT encoder without using the class token. Alternatively, we initialized a class embedding in the decoder in

outputs_class = self.class_embed(qs)
out = {"pred_logits": outputs_class[-1]}

Thank you for the reply!
By the way, I was wonder when the SegViT2 especially Continual Learning part will be released.

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