severin-lemaignan / gazr

3D head pose estimation using monocular vision
Other
179 stars 55 forks source link

estimation speed extremely slow #27

Closed QuantuMope closed 3 years ago

QuantuMope commented 3 years ago

I am able to compile and use gazr fine without any bugs in ROS but the run time is extremely slow. The facial features topic only publishes once every few seconds (highly variable as well). This is while gazr uses up 100% of a CPU core.

Is this sort of delay normal? I thought that gazr could be used for online applications.

I already built gazr with the following flag -DCMAKE_BUILD_TYPE=Release

QuantuMope commented 3 years ago

Fixed by optimizing the compilation of both dlib and gazr. set(CMAKE_CXX_FLAGS_RELEASE "-O3")