如何解决 推理目录运行错误 "AttributeError: _2D"
Opened this issue · 4 comments
HaSaKiYasuooo commented
chanchanalina commented
俺也一样 @HaSaKiYasuooo 你找到解法了么
RobinBrackez commented
In src\extract_kp_videos.py
line 16
replace:
face_alignment.LandmarksType._2D
by:
face_alignment.LandmarksType.TWO_D
GarrettConway commented
Alternatively, install face_alignment==1.3.4 instead of face_alignment==1.3.5
slavakurilyak commented
-
Navigate to the Directory (required)
cd src/face3d
-
Run the
sed
Command (required)
Usesed
to replaceface_alignment.LandmarksType._2D
withface_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 usegrep
:grep "face_alignment.LandmarksType.TWO_D" extract_kp_videos.py
Inspired by @RobinBrackez