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

Detector gets slower in a for loop #9

Closed
gitlabspy opened this issue Jul 3, 2020 · 1 comment
Closed

Detector gets slower in a for loop #9

gitlabspy opened this issue Jul 3, 2020 · 1 comment

Comments

@gitlabspy
Copy link

import cv2
import face_detection
detector = face_detection.build_detector(
  "DSFDDetector", confidence_threshold=.5, nms_iou_threshold=.3)
for im in imgs:
  detector.detect(im)
  save...

I am using one GPU(V100 32G) to detect these imgs. At first, it used about 7800M VRAM then later it stabilize at 28100M but the speed gets much slower.
It was very fast at the beginning altho it spends some time for startup. It was like 200 imgs processed in 2min or 3min? Now it takes 10-20s to process one. All images are almost same size.
What's wrong with my code above? Any tips on process large amount of images?

@gitlabspy
Copy link
Author

It turns out it was my problem. Sorry for reporting an false issue. 😢

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

1 participant