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

Segmentation for full image #14

Open
aqibsaeed opened this issue Mar 21, 2022 · 0 comments
Open

Segmentation for full image #14

aqibsaeed opened this issue Mar 21, 2022 · 0 comments

Comments

@aqibsaeed
Copy link

Hi,

Thank you for your effort and time in implementing this. I have a quick question, I want to get segmentation for full image not just for the middle token, would it be correct to change self.tokens to self.p here:

self.mlp_seg_head = nn.Linear(dim, self.tokens * self.num_classes)

and change this:

y = self.mlp_seg_head(y[:, self.mid_token, :])

to

y = self.mlp_seg_head(y)

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

1 participant