Spaces:
Running
on
A10G
Running
on
A10G
Update src/face3d/extract_kp_videos.py
Browse files
src/face3d/extract_kp_videos.py
CHANGED
@@ -13,7 +13,7 @@ from torch.multiprocessing import Pool, Process, set_start_method
|
|
13 |
|
14 |
class KeypointExtractor():
|
15 |
def __init__(self, device):
|
16 |
-
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=
|
17 |
|
18 |
def extract_keypoint(self, images, name=None, info=True):
|
19 |
if isinstance(images, list):
|
|
|
13 |
|
14 |
class KeypointExtractor():
|
15 |
def __init__(self, device):
|
16 |
+
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device='cuda:0')
|
17 |
|
18 |
def extract_keypoint(self, images, name=None, info=True):
|
19 |
if isinstance(images, list):
|