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

Unknown error when performing the demo reconstruction #185

Closed
AlbertBaichenDu opened this issue Jun 18, 2023 · 5 comments
Closed

Unknown error when performing the demo reconstruction #185

AlbertBaichenDu opened this issue Jun 18, 2023 · 5 comments

Comments

@AlbertBaichenDu
Copy link

Traceback (most recent call last):
File "C:\Users\alber\DECA\demos\demo_reconstruct.py", line 133, in
main(parser.parse_args())
File "C:\Users\alber\DECA\demos\demo_reconstruct.py", line 42, in main
testdata = datasets.TestData(args.inputpath, iscrop=args.iscrop, face_detector=args.detector, sample_step=args.sample_step)
File "C:\Users\alber\DECA\decalib\datasets\datasets.py", line 71, in init
self.face_detector = detectors.FAN()
File "C:\Users\alber\DECA\decalib\datasets\detectors.py", line 22, in init
self.model = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)
File "C:\Users\alber\miniconda3\lib\enum.py", line 437, in getattr
raise AttributeError(name) from None
AttributeError: _2D

@ArashIranfar
Copy link

Same issue. Don't know what to do

@akasharidas
Copy link

pip install --upgrade face-alignment==1.2.0 fixed it for me

@RangerOnMars
Copy link

I solved by installing face-alignment==1.3.4
It seems that _2D is removed or replaced in face-alignment>1.3.4?
I created a PR for this #186

@Pchdm
Copy link

Pchdm commented Jun 25, 2023

rewrite the code “self.model = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)” to “self.model = face_alignment.FaceAlignment(face_alignment.LandmarksType.TWO_D, flip_input=False)” in DECA\decalib\datasets\detectors.py line 22.

@AlbertBaichenDu
Copy link
Author

Thank you very much guys. Both solutions worked for me :-)

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