blissd / fotema

Photo gallery for Linux
81 stars 8 forks source link

Use GPU for face detection #226

Open rahmanshaber opened 1 month ago

rahmanshaber commented 1 month ago

Currently it take full CPU power to detect faces. Using GPU would speed this up greatly

blissd commented 1 month ago

Hi @rahmanshaber. Thank you for your suggestion. Yes, that would be nice. However, it seems that GPU acceleration for machine learning targets NVidia but I don't have any NVidia GPUs so I'd never be able to test it. I think I'd only be interested in GPU acceleration if it could work on more than just NVidia.

If someone can get GPU acceleration to work on more than just NVidia, then I'd welcome a PR. That will probably require a different face detection library than is currently used in Fotema, though.

rahmanshaber commented 1 month ago

Yes, are you using openCV, it seems they have a some sort of support for amd gpu