We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
It is possible to change _2D to TWO_D, which is effective in my environment.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: