Skip to content

FPS与推理时间不匹配的情况 #22

@Naughty-Galileo

Description

@Naughty-Galileo

大佬您好,我在做简单测试的时候遇到一个问题,就是利用

start = clock();
end = clock();
double end_time = (double)(end-start) / CLOCKS_PER_SEC;

测试的时候cpu推理时间远超过100ms,但显示fps却有十几
gpu推理时间大约40ms,最终的fps也是十几,略高一两帧,请问这种情况是怎么回事呢?

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