Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU usage is rather high for gaming #2

Open
Xaklse opened this issue Aug 22, 2020 · 5 comments
Open

CPU usage is rather high for gaming #2

Xaklse opened this issue Aug 22, 2020 · 5 comments

Comments

@Xaklse
Copy link

Xaklse commented Aug 22, 2020

I have an Intel Core i7-7700HQ and I verified that the CPU usage is rather high, with all cores (+HT) being used.
Maybe there is a way to limit the number of threads, or switch to a less intensive algorithm in OpenFace.
Did you test GazeTracker with other FaceModelParameters?

@gavazquez
Copy link
Owner

gavazquez commented Aug 22, 2020

I didn't test different parameters but I guess that there might be one. Otherwise, you might have to modify the call to the C++ code or check if there's some missing parameter that could be useful in the C# wrapper.

My initial idea was to run this program in a raspberry pi or some small computer so it doesn't affect the main CPU...

@Xaklse
Copy link
Author

Xaklse commented Aug 28, 2020

OpenFace offers two other less accurate algorithms through the boolean params in FaceModelParameters; unfortunately I can't test them unless I download and rebuild GazeTracker code.
Do you think it would work with VS2017?

@Xaklse
Copy link
Author

Xaklse commented Aug 29, 2020

It works for VS2017.
I get less CPU usage with the other algorithms... any idea on how to tell the ImageProcessDataflow object to use different landmarkExtractor and dataExtractor on-the-fly, with a configurable algorithm selector?

@gavazquez
Copy link
Owner

I'm right now moving to another city but as soon as I'm stablished I'll try to have a look, is this parameter dependent on the building or can it be added it in the C# wrapper and send it to the unmanaged code?

@Xaklse
Copy link
Author

Xaklse commented Sep 19, 2020

Just check the constructor of ImageProcessDataflow, where the FaceModelParameters are created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants