Skip to content

yolov5v5推理结果解析问题请教 #2

Open
@xinsuinizhuan

Description

@xinsuinizhuan

我看结果都是取到数据后,直接取前四个就是cx cy w h:
图片
但是我看您的代码里面确是:
float cx = (pdata[0] * 2.f - 0.5f + j) * stride; ///cx
float cy = (pdata[1] * 2.f - 0.5f + i) * stride; ///cy
float w = powf(pdata[2] * 2.f, 2.f) * anchor_w; ///w
float h = powf(pdata[3] * 2.f, 2.f) * anchor_h; ///h

不知道怎么理解?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions