Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anubhav1997 opened this issue Oct 26, 2020 · 1 comment

Comments

@anubhav1997
Copy link

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
Copy link

Hello Sir, but how you did solve this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants