Skip to content

Why add inverse sigmoid function for the refpoint? #68

@Zhong-Zi-Zeng

Description

@Zhong-Zi-Zeng

Could you explain why we add inverse sigmoid for the refpoint? And, when we get the output of transformer's decoder layer, we do the same thing for the refpoint.

 self.refpoint_embed.weight.data[:, :2].uniform_(0, 1)
 self.refpoint_embed.weight.data[:, :2] = inverse_sigmoid(self.refpoint_embed.weight.data[:, :2])

And

tmp[..., :self.query_dim] += inverse_sigmoid(reference_points)

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