TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.99k stars 1.86k forks source link

Slimming the Program #845

Open michaelDau opened 4 years ago

michaelDau commented 4 years ago

Hi again!

So, I'm looking to speedup execution time, and I'm trying to identify what parts of the program might be able to be trimmed to speedup realtime action unit evaluation.

Obviously writing to the output file would be something, but is there anything else you might suggest doing to help speedup the process? Thanks!

michaelDau commented 4 years ago

And a side note: When running FeatureExtraction from the command line in powershell, the realtime evaluation is significantly slower and more choppy than when I run the openfaceOffline program.

TadasBaltrusaitis commented 4 years ago

I've spent a reasonable amount of time optimizing the code, so there are not many low hanging fruit here (that do not require algorithmic changes or simplifications). One obvious thing (but definitely quite involved) is to move some functionality to GPU as currently everything is done on the CPU.

With regards to differences in speed, that's really strange, are both of them Release versions? It might be to do with writing out more files (e.g. aligned faces and HOG features)