Giter Club home page Giter Club logo

Comments (12)

jolinlinlin avatar jolinlinlin commented on May 16, 2024

@Wenlong0913 hello,I also want to improve the speed ,but there is poor promotion after using cuda. Have you find better method to accelerate?If so,can you please tell me?Thank you very much.

from face.evolve.

Wenlong0913 avatar Wenlong0913 commented on May 16, 2024

@Wenlong0913 hello,I also want to improve the speed ,but there is poor promotion after using cuda. Have you find better method to accelerate?If so,can you please tell me?Thank you very much.

Nope.
Perhaps you can try this implementation. It's faster.
https://github.com/Seanlinx/mtcnn

from face.evolve.

flyingmrwang avatar flyingmrwang commented on May 16, 2024

@Wenlong0913 I am facing the same problem. Could you give some hints on how much it is faster than this one? And do you think the key point of low gpu usage is mtcnn itself or in-efficient implementation? Also, in your provided mtcnn, there is no prediction of landmarks. How do you utilize it to align face?

from face.evolve.

innerlee avatar innerlee commented on May 16, 2024

Check out this fork: https://github.com/innerlee/face.evoLVe.PyTorch

Speed Comparison

original

In [1]: from PIL import Image 
   ...: from detector import detect_faces                                                                

In [2]: img = Image.open('../disp/Fig1.png').convert('RGB')                                                             

In [3]: %time detect_faces(img)                                                                                         
CPU times: user 2.85 s, sys: 172 ms, total: 3.02 s
Wall time: 610 ms

the fork

In [1]: from PIL import Image                                                                                           

In [2]: from evolveface import detect_faces, show_results                                                               

In [3]: img = Image.open('disp/Fig1.png').convert('RGB')

In [4]: %time detect_faces(img)                                                                                         
CPU times: user 255 ms, sys: 6.05 ms, total: 261 ms
Wall time: 42.3 ms

from face.evolve.

xxxpsyduck avatar xxxpsyduck commented on May 16, 2024

@innerlee so it's all about pillow-simd?

from face.evolve.

innerlee avatar innerlee commented on May 16, 2024

There are lots of code optimization also

from face.evolve.

xxxpsyduck avatar xxxpsyduck commented on May 16, 2024

@innerlee Does it affect model performance?

from face.evolve.

innerlee avatar innerlee commented on May 16, 2024

Purely speed changes. The bottleneck is not model inference.

from face.evolve.

xxxpsyduck avatar xxxpsyduck commented on May 16, 2024

@innerlee I'm checking it out. Great work

from face.evolve.

YINDAIYING avatar YINDAIYING commented on May 16, 2024

@innerlee Hello, can u share what's the estimated time for training this repo using full dataset of Celeb-1M? I tried using 4 GPU but my estimated time is too long like 200 days for a single batch. I cannot believe it. After ten hours of training using only 1/3 of data, it's still at the first epoch with batch 1920/411750. Can u share ur training status? Thx

from face.evolve.

innerlee avatar innerlee commented on May 16, 2024

I use the provided weights for inference. Haven't tried training 🤷

from face.evolve.

PatrickPrakash avatar PatrickPrakash commented on May 16, 2024

image
I also have this issue, I'm running the dataset on Tesla K80

from face.evolve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.