Skip to content

Area calculation in TorchVision Object Detection Finetuning Tutorial #2173

Closed
@Himanshunitrr

Description

@Himanshunitrr

I see that at https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html,

area = (boxes[:, 3] - boxes[:, 1]) * (boxes[:, 2] - boxes[:, 0]) but shouldn't it be something like area = ((boxes[:, 3] - boxes[:, 1]) + 1) * ((boxes[:, 2] - boxes[:, 0]) + 1) for calculating areas? If I am wrong, can someone explain me why is it so. Thanks in advance !

cc @datumbox @nairbv

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions