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

Doesn't use GPU #23

Open
linguist89 opened this issue Jun 18, 2021 · 4 comments
Open

Doesn't use GPU #23

linguist89 opened this issue Jun 18, 2021 · 4 comments

Comments

@linguist89
Copy link

I'm running the package using Google Colab and the GPU is detected and available, however the FER packages doesn't seem to use it. I've run it before on the same setup and it worked using the GPU, but now it doesn't. Is there anyone that has the same problem?

@JustinShenk
Copy link
Owner

JustinShenk commented Jun 22, 2021 via email

@linguist89
Copy link
Author

@JustinShenk Thanks for the reply. I have tried that, but it still doesn't work. I've scoured the internet forums and it seems that there has been a Colab update and the CUDA and tensorflow version are now different. I think that might be the reason, but I don't know how to fix that.

@linguist89
Copy link
Author

@JustinShenk I'm continuing my comments from this issue since I didn't want to hijack his question. I've got the GPU working, but it seems that it was working the whole time only it uses about 5% of the GPU, so it's only marginally faster than CPU. I found a little bash script that plots the GPU usage
GPU_usage

Is there a way to force the code to use more GPU?

@JustinShenk
Copy link
Owner

Batching the frames and adding a queue would allow speeding it up and increasing GPU usage. It would be great if someone would make a PR for this

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