mtcnn icon indicating copy to clipboard operation
mtcnn copied to clipboard

Passing batch of images for faster processing

Open Neltherion opened this issue 7 years ago • 9 comments

Hi, First of all thanks so much for your effort in bringing MTCNN to Python in an easy usable way.

I wanted to know if there is a way to pass a batch of images (instead of just one image) to the GPU to increase the overall speed of face detections for lots of images.

Thanks again

Neltherion avatar May 15 '18 10:05 Neltherion

Hello @Neltherion . Right now there isn't a way to process a batch of images, but I'll work on it. Thank you for the suggestion!

ipazc avatar May 17 '18 15:05 ipazc

@ipazc Thanks. I'll be watching your progress...

Neltherion avatar May 19 '18 06:05 Neltherion

I'm curious, how fast is it on GPU, without batches?

Vermeille avatar Jul 05 '18 10:07 Vermeille

@Vermeille something like 40-60ms on 1920x1080

YaroslavSchubert avatar Sep 06 '18 11:09 YaroslavSchubert

I also want this features, when will batch of images support be available?

SuperBo avatar Oct 14 '19 12:10 SuperBo

@ipazc are you still woking on it, or its a dead thing ?

hbellafkir avatar Dec 21 '19 15:12 hbellafkir

@Vermeille something like 40-60ms on 1920x1080

I tried on GPU instance on Google-colab. For 1280x720 image it took around a second, not at all fast as I was expecting initially

%time _ = face_detector.detect_faces(image)

CPU times: user 1.11 s, sys: 56.2 ms, total: 1.17 s Wall time: 939 ms

Is it ok to have this high number??

chaudharyachint08 avatar Feb 07 '21 00:02 chaudharyachint08

Hello @Neltherion . Right now there isn't a way to process a batch of images, but I'll work on it. Thank you for the suggestion!

Hi @ipazc, if possible will you be able to suggest by when we can expect this feature?

Vinayrraj avatar Feb 12 '21 07:02 Vinayrraj

@ipazc Still waiting for Batch level implementation, see if you can help

chaudharyachint08 avatar Apr 12 '22 15:04 chaudharyachint08