deepfakes / faceswap-playground

User dedicated repo for the faceswap project
306 stars 194 forks source link

DetectedFaces is not subscripable #242

Closed liang93823 closed 5 years ago

liang93823 commented 5 years ago

Expected behavior

Try to swap face in a video using the convert command. While attemping I used the -f argument (or Filter option with GUI) to filter out unwanted faces. It should return pictures in which correct faces are swapped.

Actual behavior

The script reported crash, saying

"Exception in thread Thread-2: Traceback (most recent call last): File "D:\Anaconda\envs\faceswap\lib\threading.py", line 914, in _bootstrap_inner self.run() File "F:\faceswap\lib\multithreading.py", line 187, in run for item in self.generator: File "F:\faceswap\scripts\convert.py", line 160, in prepare_images {"detected_faces": detected_faces}) File "F:\faceswap\scripts\fsmedia.py", line 281, in do_actions action.process(output_item) File "F:\faceswap\scripts\fsmedia.py", line 417, in process if not self.filter.check(detected_face["face"]): # TypeError: 'DetectedFace' object is not subscriptable"

Steps to reproduce

Just try using the -f arugment or Filter option within GUI.

Other relevant information

N/A

torzdf commented 5 years ago

Full crash report logfile please

liang93823 commented 5 years ago

Sorry, I wasn't very specific. I just checked and there's no crash report generated. Instead, the program just froze and the warning posted above appears in red.

torzdf commented 5 years ago

Are you on the latest commit? That kind of error should definitely dump out a crash report to your faceswap folder

liang93823 commented 5 years ago

I just cloned the git (https://github.com/deepfakes/faceswap.git), following the instructions.