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

error : raise AttributeError(name) from None #79

Open
themass opened this issue Mar 19, 2024 · 1 comment
Open

error : raise AttributeError(name) from None #79

themass opened this issue Mar 19, 2024 · 1 comment

Comments

@themass
Copy link

themass commented Mar 19, 2024

save_path ~/Downloads/test.jpg
Traceback (most recent call last):
File "/Users/liguoqing/work/photo2cartoon/test.py", line 59, in
c2p = Photo2Cartoon()
^^^^^^^^^^^^^^^
File "/Users/liguoqing/work/photo2cartoon/test.py", line 19, in init
self.pre = Preprocess()
^^^^^^^^^^^^
File "/Users/liguoqing/work/photo2cartoon/utils/preprocess.py", line 8, in init
self.detect = FaceDetect(device, detector) # device = 'cpu' or 'cuda', detector = 'dlib' or 'sfd'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/liguoqing/work/photo2cartoon/utils/face_detect.py", line 10, in init
self.fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, device=device, face_detector=detector)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/liguoqing/.pyenv/versions/3.11.7/lib/python3.11/enum.py", line 784, in getattr
raise AttributeError(name) from None
AttributeError: _2D

@colorfulandcjy0806
Copy link

colorfulandcjy0806 commented Apr 23, 2024

It is possible to change _2D to TWO_D, which is effective in my environment.

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

2 participants