FaceDetect / jointCascade_py

Joint Cascade Face Detection and Alignment
104 stars 59 forks source link

About demo error #14

Open xhzhong524 opened 7 years ago

xhzhong524 commented 7 years ago

I have follow the instructions, but when I run the

python -W ignore ./demo_detect.py ../config/afw_model/train.model ../config/pos.jpg

shows error like this: Traceback (most recent call last): File "./demo_detect.py", line 98, in main(sys.argv[1:]) File "./demo_detect.py", line 95, in main detect_jpg(detector, args[1])
File "./demo_detect.py", line 45, in detect_jpg rects, confs = detector.detect(imgArr, 1.1, 2) File "./../cascade/cascade.py", line 120, in detect initShape) File "./../cascade/carm/boostCart.py", line 258, in validate initShape) File "./../cascade/carm/cart.py", line 291, in validate point_a = shape[feaType[1]] IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

Does anyone know how to fix this?

zzw1123 commented 7 years ago

same error occurs to me ,have you solved them?? @xhzhong524

wapping commented 5 years ago

feaType = feaType.astype(int)