Open HaSaKiYasuooo opened 1 year ago
俺也一样 @HaSaKiYasuooo 你找到解法了么
In src\extract_kp_videos.py
line 16
replace:
face_alignment.LandmarksType._2D
by:
face_alignment.LandmarksType.TWO_D
Alternatively, install face_alignment==1.3.4 instead of face_alignment==1.3.5
Navigate to the Directory (required)
cd src/face3d
Run the sed
Command (required)
Use sed
to replace face_alignment.LandmarksType._2D
with face_alignment.LandmarksType.TWO_D
in the file:
sed -i 's/face_alignment.LandmarksType._2D/face_alignment.LandmarksType.TWO_D/g' extract_kp_videos.py
Verify the Changes (optional)
To confirm the changes, you can use grep
:
grep "face_alignment.LandmarksType.TWO_D" extract_kp_videos.py
Inspired by @RobinBrackez