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

Run on multiple GPU #40

Closed
hiral-kotadiya opened this issue Aug 4, 2022 · 2 comments
Closed

Run on multiple GPU #40

hiral-kotadiya opened this issue Aug 4, 2022 · 2 comments
Labels
question Further information is requested

Comments

@hiral-kotadiya
Copy link

How can we run retina face on multiple GPU?

@serengil
Copy link
Owner

if you install tensorflow-gpu before installing deepface, that package will handle it.

@serengil serengil added the question Further information is requested label Aug 18, 2022
@csmailis
Copy link
Contributor

csmailis commented Jun 28, 2023

After you install tensorflow-gpu you can use the following command within the Python script that contains RetinaFace calls to:

  1. os.environ["CUDA_VISIBLE_DEVICES"] = "1" - > Specify which GPU to use
  2. os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true' - > Limit the amount of reserved VRAM so that other scripts can be run in the same GPU.

Maybe a section in the Readme.md providing example uses of the above commands in user-created scripts could be useful as many others seem to be looking into these issues.

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

No branches or pull requests

3 participants