Skip to content

Segmentation for full image #14

@aqibsaeed

Description

@aqibsaeed

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions