Skip to content

loss function like has a bug #1988

@rrjia

Description

@rrjia

🐛 Bug

A clear and concise description of what the bug is.

utils/loss.py line108

gain[2:6] = torch.tensor(p[i].shape)[[3, 2, 3, 2]]  # xyxy gain

for yolov5s.yaml
if i=1
p[i].shape = 3,80,80,85
gain[2:6] = [85, 80, 85, 80]

gain[2:6] = torch.tensor(p[i].shape)[[2, 1, 2, 1]]  # xyxy gain

it shoud be [80, 80, 80, 80]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions