Skip to content

Add option to choose the loss function in compute_loss function.  #5983

Open
@abhi-glitchhg

Description

@abhi-glitchhg

🚀 The feature

In the compute loss function, giou_loss is used to calculate the loss by default see here, but now as CIOU and DIOU loss functions are added to torchvision, maybe we could let the user choose in between the loss functions

cc @datumbox @YosuaMichael, @NicolasHug,

Motivation, pitch

This gives little more freedom to the user to choose between the loss functions.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions