DECA icon indicating copy to clipboard operation
DECA copied to clipboard

ModuleNotFoundError: No module named 'face_alignment'

Open modoneer opened this issue 4 years ago • 0 comments
trafficstars

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:

  1. After ran python demos/demo_reconstruct.py --help it mentioned "detector for cropping face, check decalib/detectors.py for details", but detectors.py is located in decalib\datasets directory.
  2. 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

modoneer avatar May 07 '21 05:05 modoneer