Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何解决 推理目录运行错误 "AttributeError: _2D" #37

Open
HaSaKiYasuooo opened this issue Jul 13, 2023 · 4 comments
Open

如何解决 推理目录运行错误 "AttributeError: _2D" #37

HaSaKiYasuooo opened this issue Jul 13, 2023 · 4 comments

Comments

@HaSaKiYasuooo
Copy link

image

@chanchanalina
Copy link

俺也一样 @HaSaKiYasuooo 你找到解法了么

@RobinBrackez
Copy link

In src\extract_kp_videos.py line 16

replace:

face_alignment.LandmarksType._2D

by:

face_alignment.LandmarksType.TWO_D

@GarrettConway
Copy link

Alternatively, install face_alignment==1.3.4 instead of face_alignment==1.3.5

@slavakurilyak
Copy link

  1. Navigate to the Directory (required)

    cd src/face3d
  2. 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
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants