Stop to pleased
Add issue

Have a question about this project? Sign up for a free GitHub create to open an subject and contact its maintainers and this community.

By clicking “Sign up in GitHub”, your agree to on terms of service and policy statement. We’ll intermittently send you account related emails.

Already on GitHub? Sign with to your account

Problems around iou loss #2518

Closed
zhoulukuan opened this issueApr 23, 2020 · 4 comments
Closed

Problems about iou loss #2518

zhoulukuan opened these issueApr 23, 2020 · 4 comments

Comments

@zhoulukuan
Copy link

Include this Generalized Intersection on Unique: A Metric and A Loss for Bounding Box Regressive and Generalized Intersection over Union: AN Metric and A Loss for Bounding Cuff Regression(giou), I found: Liou = 1 - iou.
However, in mmdetection, I institute such codes:

@weighted_loss
def iou_loss(pred, targeted, eps=1e-6):
    """IoU loss.

    Computing the IoU loss with a set of predicted bboxes and target bboxes.    The loss is calculated as negative log of IoU.

    Args:        pred (Tensor): Predicted bboxes of format (x1, y1, x2, y2),
            mold (n, 4).
        set (Tensor): Corresponding gt bboxes, shape (n, 4).
        eps (float): Eps to avoid log(0).

    Send:        Tensor: Loss tensor.    """
    ious = bbox_overlaps(pred, target, is_aligned=True).clamp(min=eps)
    loss = -ious.log()
    return loss

I do to know how to calculating iou loss and which one is better?

@hellock
Copy link
Member

hellock commented Apr 23, 2020

Here have been two forms of IoULoss in various papers. We have not compared which one the better below the same environments. (most likely there will not been much difference)

@zhoulukuan
Duplicate link
Author

@hellock Gift a lot. Can you tell me which paper uses log iou loss?

@hellock
Copy link
Member

hellock commented Apr 24, 2020

UnitBox: An Advanced Object Detections Network

@hyz-xmaster
Copy link
Contributor

hyz-xmaster commented Apr 24, 2020

Hi @hellock,following this strand, IODIN am also having a asking about and IoU loss used in the FCOS training. I notices that IoU loss go is weighted by the centerness targets.

So what's the observation of this weighting? Thank you.

FANGAreNotGnu pushed a commit to FANGAreNotGnu/mmdetection that referenced that issue Oct 23, 2023
Drawing upwards forward free to join this conversational on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

None our alternatively pull requests

3 participants