SadTalker
SadTalker copied to clipboard
I encountered a problem at runtime: AttributeError: _2D, how can I solve it?
The full problem is described below:
Traceback (most recent call last):
File "inference.py", line 158, in
@LGDJCY Go to File "/Users/yangboz/git/SadTalker/src/face3d/extract_kp_videos.py", line 16, in init and change face_alignment.LandmarksType._2D to face_alignment.LandmarksType.TWO_D
You could also try pip install face-alignment==1.3.4
Apparently the ._2D
and ._3D
(which was what I had in my case) attributes are not compatible with face-alignment>1.3.4
.
You could also try
pip install face-alignment==1.3.4
Apparently the
._2D
and._3D
(which was what I had in my case) attributes are not compatible withface-alignment>1.3.4
.
OK,thankyou!
@LGDJCY Go to File "/Users/yangboz/git/SadTalker/src/face3d/extract_kp_videos.py", line 16, in init and change face_alignment.LandmarksType._2D to face_alignment.LandmarksType.TWO_D
I see. Thank you!
You could also try
pip install face-alignment==1.3.4
Apparently the
._2D
and._3D
(which was what I had in my case) attributes are not compatible withface-alignment>1.3.4
.
it gets solved, but another problem comes out.
(base) root@iZf8zejm0dnzfmwm21d3e2Z:~/Projects/SadTalker-Video-Lip-Sync# python inference.py --driven_audio /examples/driven_audio/chinese_poem1.wav --source_video /examples/driven_vedio/1.mp4 ./checkpoints/epoch_20.pth ./checkpoints/auido2pose_00140-model.pth ./checkpoints/auido2exp_00300-model.pth ./checkpoints/facevid2vid_00189-model.pth.tar ./checkpoints/mapping_00109-model.pth.tar Killed
I don't know how to deal with it.
change _2D -> TWO_D / _3D -> THREE_D