Skip to content

About demo error #14

Description

@xhzhong524

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions