yfeng95 / DECA

DECA: Detailed Expression Capture and Animation (SIGGRAPH 2021)
Other
2.06k stars 417 forks source link

get error datasets/detectors.py", line 28 name 'image' is not defined #196

Open koolou opened 11 months ago

koolou commented 11 months ago

WX20230803-015152@2x Traceback (most recent call last): File "/Users/loc/DECA/demos/demo_reconstruct.py", line 131, in main(parser.parse_args()) File "/Users/loc/DECA/demos/demo_reconstruct.py", line 40, in main testdata = datasets.TestData(args.inputpath, iscrop=args.iscrop, face_detector=args.detector, sample_step=args.sample_step) File "/Users/loc/DECA/decalib/datasets/datasets.py", line 71, in init self.face_detector = detectors.FAN() File "/Users/loc/DECA/decalib/datasets/detectors.py", line 28, in init out = self.model.get_landmarks(image)

How should I set this "image" value? I get an error when I directly use the content from the comments.

xuduo18311199384 commented 11 months ago

2023-08-03 09-10-08 的屏幕截图