Skip to content

box_area and box_iou functions for cxcywh format #8961

Open
@alperenunlu

Description

@alperenunlu

🚀 The feature

Native box_area and box_iou functions for cxcywh format.

Motivation, pitch

Since the cxcywh format is common, we can use faster and simpler functions to calculate box area and box IoU directly in this format.

Currently, we first need to convert to the xyxy format before using box_area and box_iou in torchvision.

Alternatives

No response

Additional context

I can open a pull request from alperenunlu/vision@cf93d9e

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