vinthony commited on
Commit
2eea0f8
1 Parent(s): a12ed30

Update src/face3d/extract_kp_videos.py

Browse files
Files changed (1) hide show
  1. src/face3d/extract_kp_videos.py +1 -1
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=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):