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

retinaface+arcface在tensorRT7.x与tensorRT8.x耗时差别很大,这是什么原因呢? #40

Closed
goldwater668 opened this issue Dec 1, 2021 · 3 comments

Comments

@goldwater668
Copy link

goldwater668 commented Dec 1, 2021

1.retinaface,resnet50+tensorRT8.x耗时如下:
car.jpg, 2 faces, average time: 24.85 ms
gril.jpg, 1 faces, average time: 24.85 ms
group.jpg, 24 faces, average time: 24.85 ms
yq.jpg, 1 faces, average time: 24.85 ms
zand.jpg, 2 faces, average time: 24.85 ms
zgjr.jpg, 3 faces, average time: 24.85 ms

2.retinaface,resnet50+tensorRT7.x耗时如下:
car.jpg, 2 faces, average time: 34.78 ms
gril.jpg, 1 faces, average time: 34.78 ms
group.jpg, 24 faces, average time: 34.78 ms
yq.jpg, 1 faces, average time: 34.78 ms
zand.jpg, 2 faces, average time: 34.78 ms
zgjr.jpg, 3 faces, average time: 34.78 ms

3.retinaface+arcface,resnet50+tensorrt8.X耗时如下:
2ys1.jpg_2face_time:0.060646772384643555s
2ys3.jpg_9face_time:0.12475872039794922s
2ys5.jpg_3face_time:0.09700417518615723s
2ys2.jpg_1face_time:0.053908586502075195s

4.retinaface+arcface,resnet50+tensorrt7.X耗时如下:
2ys2.jpg_1face_time:0.33365297317504883s
2ys1.jpg_2face_time:0.6880166530609131s
2ys3.jpg_9face_time:2.6245572566986084s
2ys5.jpg_3face_time:0.9589879512786865s

同一个模型在tensorRT版本上差别很大,是不是arcface跟tensorRT7.x版本的问题?

@goldwater668 goldwater668 changed the title retinaface retinaface+arcface在tensorRT7.x与tensorRT8.x耗时差别很大,这是什么原因呢? Dec 1, 2021
@shouxieai
Copy link
Owner

这个非常需要了解你如何测试计时的

@goldwater668
Copy link
Author

goldwater668 commented Dec 6, 2021

@shouxieai
resnet50+tensorRT8.x和resnet50+tensorRT7.x,是运行make retinaface -j8测试的,用python测试耗时也是这样的结果

retinaface+arcface,resnet50+tensorrt8.X和resnet50+tensorrt7.X是python运行测试的

@shouxieai
Copy link
Owner

tensorRT8确实存在优化,这一点你得清楚下

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