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

high inference times for initial images #27

Open
saimouli opened this issue Jun 8, 2022 · 1 comment
Open

high inference times for initial images #27

saimouli opened this issue Jun 8, 2022 · 1 comment

Comments

@saimouli
Copy link

saimouli commented Jun 8, 2022

It takes a long time to do inference for the first few images. Progressively the inference time reduces. Does engine generation optimize according to the device? Any cache/changes needed to make the inference time constant for any number of iterations?

000273.png
103ms preprocess
419ms inference

000237.png
2ms preprocess
14ms inference

000103.png
2ms preprocess
14ms inference
@vjsrinivas
Copy link

I believe this is just an unfortunate limitation of GPU kernel initialization. There is not much you can do other than maybe running dummy inputs for however many slow inferences there are before going into your real data.

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