DECA
DECA copied to clipboard
ModuleNotFoundError: No module named 'face_alignment'
Hi, I ran the demo code
python demos/demo_reconstruct.py -i TestSamples/examples --saveDepth True --saveObj True
and got this error message:
total 9 images Traceback (most recent call last): File "F:\Softwares\AI\DECA-master\demos\demo_reconstruct.py", line 103, in
main(parser.parse_args()) File "F:\Softwares\AI\DECA-master\demos\demo_reconstruct.py", line 36, in main testdata = datasets.TestData(args.inputpath, iscrop=args.iscrop, face_detector=args.detector) File "F:\Softwares\AI\DECA-master\decalib\datasets\datasets.py", line 70, in init self.face_detector = detectors.FAN() File "F:\Softwares\AI\DECA-master\decalib\datasets\detectors.py", line 21, in init import face_alignment ModuleNotFoundError: No module named 'face_alignment'
Not sure what's going wrong.
Several things I noticed but not sure if they are related to this issue:
- After ran
python demos/demo_reconstruct.py --helpit mentioned "detector for cropping face, check decalib/detectors.py for details", but detectors.py is located in decalib\datasets directory. - Inside BFM_to_FLAME folder (after unzip) there's no FLAME_albedo_from_BFM.npz but BFM_to_FLAME_corr.npz. Do I need to change the filename to BFLAME_albedo_from_BFM.npz and place it to .\data?
Thanks