vinthony commited on
Commit
684bb8e
1 Parent(s): 4142979

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='cpu')
17
 
18
  def extract_keypoint(self, images, name=None, info=True):
19
  if isinstance(images, list):