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

Running on gpu #78

Open
gd1925 opened this issue Dec 21, 2022 · 3 comments
Open

Running on gpu #78

gd1925 opened this issue Dec 21, 2022 · 3 comments

Comments

@gd1925
Copy link

gd1925 commented Dec 21, 2022

Hi,
Thank you for the awesome work! It is very helpful!
Is it possible to run the code on GPU? I am running it on Ubuntu 18.04 and when I try to run, it does not run on gpu devices and runs on cpu. Is there any way to enforce the condition to run the example.py on gpu? I also tried to run export CUDA_VISIBLE_DEVICES=0, but it still seems to be running on cpu.
Many thanks!

@Cuda-Chen
Copy link

To my knowledge, it runs on CPU only no matter what.

@gd1925
Copy link
Author

gd1925 commented Dec 23, 2022

Hi @Cuda-Chen, do you think trying to run the dlib library on gpu can help?

@Cuda-Chen
Copy link

@gd1925
It is possible to let dlib and OpenCV function run on GPU. However, the bus to GPU will be the bottleneck. Unless you have a particular reason to run on GPU (e.g., given a 4K resolution image and find the face), running on GPU will not be an idea.

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