Spaces:
Runtime error
Runtime error
Update src/face3d/extract_kp_videos.py
Browse files12 unmodified lines131415161617181912 unmodified lines
class KeypointExtractor(): def __init__(self, device): self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=device) self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device='cpu')
def extract_keypoint(self, images, name=None, info=True): if isinstance(images, list):src/face3d/extract_kp_videos.py+1-1