Skip to content

run the 0.0.5-SNAPSHOT version FaceDetectionSample1.java on the MAC got exception #8

Description

@ericwang1984

Hi ,
I run the FaceDetectionSample1.java on the MAC and then got the exception like:

Exception in thread "main" java.lang.IllegalStateException: Can't transpose array with rank < 2: array shape [4]
at org.nd4j.base.Preconditions.throwStateEx(Preconditions.java:641)
at org.nd4j.base.Preconditions.checkState(Preconditions.java:304)
at org.nd4j.linalg.api.ndarray.BaseNDArray.transpose(BaseNDArray.java:4440)
at net.tzolov.cv.mtcnn.MtcnnUtil.generateBoundingBox(MtcnnUtil.java:415)
at net.tzolov.cv.mtcnn.MtcnnService.preparationStage(MtcnnService.java:312)
at net.tzolov.cv.mtcnn.MtcnnService.rawFaceDetection(MtcnnService.java:255)
at net.tzolov.cv.mtcnn.MtcnnService.faceDetection(MtcnnService.java:184)
at net.tzolov.cv.mtcnn.sample.FaceAlignmentSample.main(FaceAlignmentSample.java:52)

seems like throw exception at "INDArray score = imap.get(yx).transpose();"

Could you help me about this? Thank you

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions