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

long inference time to the first images in the folder #1407

Closed
SJavad opened this issue Nov 18, 2023 · 5 comments
Closed

long inference time to the first images in the folder #1407

SJavad opened this issue Nov 18, 2023 · 5 comments
Labels
wontfix This will not be worked on

Comments

@SJavad
Copy link

SJavad commented Nov 18, 2023

Env

  • GPU, Jetson TX1
  • OS, Ubuntu 18.04
  • Cuda 10.2
  • TensorRT 8.2

About this repo

  • yolov5
  • model: Yolov5

Your problem

@wang-xinyu

  • what is your command? e.g. sudo ./yolov5 -d model.engine
  • Do you know what your output is? -> inference time 328ms , \n inference time 25ms
  • what output do you expect? I expect all photos to take the same amount of time to process
    when I try to infer multiple pictures in the folder, the first and second picture takes a long time to infer but other pictures take the same inference time (35ms)
    what's the problem?
    all pictures have the same dimension. (640,640,3)
    Would anyone be able to help me?
@SJavad
Copy link
Author

SJavad commented Nov 23, 2023

Has anyone encountered this problem yet?!
Please can I ask you to guide me!? @wang-xinyu

@wang-xinyu
Copy link
Owner

@SJavad This is as expected, the trt engine needs to warmup.

@SJavad
Copy link
Author

SJavad commented Nov 30, 2023

@SJavad This is as expected, the trt engine needs to warmup.

So how can I warm up the model?

@wang-xinyu
Copy link
Owner

By running inference on several images.

If the process started again, it needs to warmup again.

Copy link

stale bot commented Feb 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Feb 3, 2024
@stale stale bot closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants