neverUseThisName / Face-X-Ray

Unofficial implementation of paper 'Face X-ray for More General Face Forgery Detection'. (updating...)
91 stars 14 forks source link

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType #3

Open AMAMAM7 opened 4 years ago

AMAMAM7 commented 4 years ago

Hello~Thanks for your work. But i encountered a problem The error is as follows: 0it [00:00, ?it/s]Traceback (most recent call last): File "/Users/for_am/Documents/a/FaceXRaymaster/faceBlending.py", line 174, in main() File "/Users/for_am/Documents/a/FaceXRaymaster/faceBlending.py", line 42, in main for i, srcFace in enumerate(srcFaces): File "/Users/for_am/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1081, in iter for obj in iterable: File "/Users/for_am/Documents/a/FaceXRaymaster/utils.py", line 31, in files if os.path.isfile(path): File "/Users/for_am/opt/anaconda3/lib/python3.7/genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Hope you can help me! Thanks !☺️

neverUseThisName commented 4 years ago

You need to have a dataset of face images and provide its path with -sfp path/to/dataset when running faceBlending.py. All arguments can be found in get_args function or by python faceBlending.py --help.