facenet icon indicating copy to clipboard operation
facenet copied to clipboard

Aligning the dataset using GPU does not use GPU, rather just eats up GPU

Open taureanamir opened this issue 6 years ago • 2 comments

@davidsandberg,

The alignment code only eats up my GPU memory but doesnot use the GPU at all. What is the reason behind it? Is the reason same as https://github.com/davidsandberg/facenet/issues/461.

Currently I've set to use 50% of my GPU. image

taureanamir avatar Feb 27 '19 08:02 taureanamir

This is normal Tensorflow behavior.

By default, TensorFlow maps nearly all of the GPU memory of all GPUs (subject to CUDA_VISIBLE_DEVICES) visible to the process.

The low GPU utilisation is as stated in the issue you referenced, because most of the code that does the aligning happens on the CPU rather than the GPU.

MaartenBloemen avatar Feb 27 '19 12:02 MaartenBloemen

Hello! Have you solved this problem successfully? Could you tell me how to solve this problem? I will appreciate it if you could give me some advise!

Richard-wang85 avatar Apr 19 '22 06:04 Richard-wang85