Skip to content

Improved efficiency in the forward part of the decoder. #37

@tyui592

Description

@tyui592

obj_center = reference_points[..., :2].transpose(0, 1) # [num_queries, batch_size, 2]

Since reference_points does not change in the for loop, it is more efficient that pre-calculate the obj_center.

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