mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
use GPU in fastMtCnn
This commit is contained in:
parent
329606ffe8
commit
3d8733812b
@ -68,7 +68,7 @@ class FastMtCnnClient(Detector):
|
|||||||
"Please install using 'pip install facenet-pytorch' "
|
"Please install using 'pip install facenet-pytorch' "
|
||||||
) from e
|
) from e
|
||||||
|
|
||||||
face_detector = fast_mtcnn(device="cpu")
|
face_detector = fast_mtcnn(device="cuda:0")
|
||||||
return face_detector
|
return face_detector
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user