报错:
Traceback (most recent call last):
File "inference.py", line 158, in
main(args)
File "inference.py", line 55, in main
preprocess_model = CropAndExtract(path_of_lm_croper, path_of_net_recon_model, dir_of_BFM_fitting, device)
File "D:\SadTalker\src\utils\preprocess.py", line 46, in init
self.kp_extractor = KeypointExtractor(device)
File "D:\SadTalker\src\face3d\extract_kp_videos.py", line 16, in init
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=device)
File "D:\anaconda3\envs\SadTalker_ENV\lib\enum.py", line 384, in getattr
raise AttributeError(name) from None
AttributeError: _2D
执行命令:python inference.py --driven_audio D:\SadTalker\examples\driven_audio\chinese_news.wav --source_image D:\SadTalker\examples\source_image\happy.png --enhancer gfpgan
报错: Traceback (most recent call last): File "inference.py", line 158, in
main(args)
File "inference.py", line 55, in main
preprocess_model = CropAndExtract(path_of_lm_croper, path_of_net_recon_model, dir_of_BFM_fitting, device)
File "D:\SadTalker\src\utils\preprocess.py", line 46, in init
self.kp_extractor = KeypointExtractor(device)
File "D:\SadTalker\src\face3d\extract_kp_videos.py", line 16, in init
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=device)
File "D:\anaconda3\envs\SadTalker_ENV\lib\enum.py", line 384, in getattr
raise AttributeError(name) from None
AttributeError: _2D