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

Have a question about dlib usage. #74

Open
JainJang opened this issue Apr 20, 2018 · 0 comments
Open

Have a question about dlib usage. #74

JainJang opened this issue Apr 20, 2018 · 0 comments

Comments

@JainJang
Copy link

I'm trying to train my own aging data set and want to crop the frontal faces almost 30,000 images.
I input the command as below:
$python guess.py --model_type inception --model_dir model --filename dlib1.csv --face_detection_type dlib --face_detection_model shape_predictor_68_face_landmarks.dat

In the dlib1.csv, I have image data path.

And I have an error like this:

Using face detector (dlib) shape_predictor_68_face_landmarks.dat
dlib1.csv
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in ipp_cvtColor, file /builds/bob/bob.conda/conda-env/opencv_1489404393345/work/opencv-3.1.0/modules/imgproc/src/color.cpp, line 7456
Traceback (most recent call last):
File "guess.py", line 207, in
tf.app.run()
File "/home/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
_sys.exit(main(argv))
File "guess.py", line 140, in main
face_files, rectangles = face_detect.run(FLAGS.filename)
File "/home/python/age/dlibdetect.py", line 16, in run
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.error: /builds/bob/bob.conda/conda-env/opencv_1489404393345/work/opencv-3.1.0/modules/imgproc/src/color.cpp:7456: error: (-215) scn == 3 || scn == 4 in function ipp_cvtColor

How can I use the guess.py for face images cropping with big dataset?

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

1 participant