Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I think there is a littlr error in CPUDetectionOutput.cpp in backend folder #123

Closed
maggiez0138 opened this issue Jun 13, 2019 · 1 comment

Comments

@maggiez0138
Copy link

在输出检测框阶段,outPtr已经是float型了,为啥还*4呢?
// write data
auto outPtr = output->host<float>();
for (int i = 0; i < numDetected; i++, outPtr += 6 * 4) {
    auto box      = allClassBoxes[i];
    outPtr[0 * 4] = box_label(box);
    outPtr[1 * 4] = box_score(box);
    outPtr[2 * 4] = box_rect_xmin(box);
    outPtr[3 * 4] = box_rect_ymin(box);
    outPtr[4 * 4] = box_rect_xmax(box);
    outPtr[5 * 4] = box_rect_ymax(box);
}
@li-qing
Copy link
Contributor

li-qing commented Jun 14, 2019

因为是在通道上做了pack 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants