yuezunli / CVPRW2019_Face_Artifacts

Exposing DeepFake Videos By Detecting Face Warping Artifacts
127 stars 48 forks source link

RuntimeError: Unsupported image type, must be 8bit gray or RGB image. #11

Open anubhav1997 opened 3 years ago

anubhav1997 commented 3 years ago

Keep running into this issue with every image that I have tried.

Loading checkpoint /home/anubhav/CVPRW2019_Face_Artifacts/ckpt_res50/model Testing: ./jpg/i056sa-mn.jpg Traceback (most recent call last): File "demo.py", line 120, in run(args.input_dir) File "demo.py", line 88, in run prob = im_test(im) File "demo.py", line 47, in im_test face_info = lib.align(im[:, :, (2,1,0)], front_face_detector, lmark_predictor) File "/home/anubhav/CVPRW2019_Face_Artifacts/py_utils/face_utils/lib.py", line 231, in align faces = face_detector(im, scale) RuntimeError: Unsupported image type, must be 8bit gray or RGB image.

hassanjardali commented 3 years ago

Hello Sir, but how you did solve this issue ?