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

Some issues in demo.py #63

Open
dhiyu opened this issue May 25, 2020 · 2 comments
Open

Some issues in demo.py #63

dhiyu opened this issue May 25, 2020 · 2 comments

Comments

@dhiyu
Copy link
Contributor

dhiyu commented May 25, 2020

In function detect of file demo.py, the codes
for i in range(2): start = time.time() boxes = do_detect(m, sized, 0.5, num_classes, 0.4, use_cuda) finish = time.time() if i == 1: print('%s: Predicted in %f seconds.' % (imgfile, (finish - start)))
My problem is why we need to conduct these codes two times. Thanks~ @Tianxiaomo

@ersheng-ai
Copy link
Collaborator

I think it is maybe because the first iteration usually consumes longer time and inaccurate for speed estimation.

@Tianxiaomo
Copy link
Owner

warmup

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

3 participants