digitalbrain79 / pyyolo

Simple python wrapper for YOLO.
126 stars 65 forks source link

More time taken compared to the orginal c interface #24

Open lg-code-repo opened 7 years ago

lg-code-repo commented 7 years ago

For a image with a size of 640*480, in my GPU 1070,the c interface ouputs 0.02s,but when i use the pyyolo interference, i get a value of 0.08s for one image. So the python interface takes three times bigger than the original c interface function. What's the reason?

abhigoku10 commented 6 years ago

@kinginsky yes even i am facing the same issue . do u have any alternate solution for it do let me know

TheMikeyR commented 6 years ago

I have tested the python interface, and made my own time print around pyyolo.detect() when comparing the time with the built-in prediction timer it says:

(builtin timer) Cam frame predicted in 0.017226 seconds.   
(python call timer) Time used predicting: 0.04249 seconds.

So about 3 times as long to do the entire process of calling detection, making the detection and then get the info inside python again. I wonder if there any way to speed this up for it get closer to the builtin timer