fotema icon indicating copy to clipboard operation
fotema copied to clipboard

[Feature Request] Used CPU cores & GPU

Open mbnoimi opened this issue 1 year ago • 1 comments

For face detection and recognizing people

  1. Add an option to switch between CPU or GPU
  2. Add an option to set number of used cores (my laptop's temperature becomes 93 degree because it uses all my CPU cores)

mbnoimi avatar Dec 31 '24 23:12 mbnoimi

Hi @mbnoimi. Thank you for your feature request.

I don't know how to use the GPU for face detection without using an NVidia GPU. I don't have an NVidia GPU and I don't want to try and add GPU acceleration if it is only for NVidia GPUs. Also, the face detection library I use looks abandoned :cry: and I'll probably have to re-write face detection to use a different library for it to improve. I've had a look at both Hugging Face Candle and OpenCV, both of which I think support various GPU acceleration modes, but I haven't really had the time to try either out.

Using fewer cores would be a good idea--my laptop gets too hot to touch when I test thumbnail generation and face detection over my library!

blissd avatar Jan 01 '25 10:01 blissd