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

Some problems about vision transformer #16

Open
sure7018 opened this issue Dec 23, 2021 · 1 comment
Open

Some problems about vision transformer #16

sure7018 opened this issue Dec 23, 2021 · 1 comment

Comments

@sure7018
Copy link

Hello, by combining the code and your paper, I have the following questions(about vit_ csra):

In the code, the class token is not used in the input of the last CSRA module, so why set the class token in the code in "VIT_CSRA".
Has the last MLP head used for classification in the vision transformer been deleted directly?

@Kevinz-code
Copy link
Owner

Hi, thanks for reproducing our paper.

"why set the class token in the code in "VIT_CSRA" ": setting class token at the beginning is the original structure of VIT, which is not in the range of our modification. What we do is to fit CSRA into the VIT models (e.g. use all the final patch embeddings instead of the final one single class token).

"Has the last MLP head used for classification in the vision transformer been deleted directly?", Yes. We use our CSRA module instead the original classification head.

Best,
Authors.

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