Skip to content

/Objectness.cpp:304 not enough training sample for r[0] = 2. P = 0, N = 6760 #16

Open
@yaokmallorca

Description

@yaokmallorca

Hi bittnt,
Thanks a lot for this code.
I ran this algorithm on my dataset and I got the error which has troubled me for a long time.
The error report is :
Warning /home/bnnt/software/Objectness-master/Src/Objectness.cpp:304 not enough training sample for r[0] = 2. P = 0, N = 6760
xp.size = 0 xN.size = 6760
OpenCV Error: Assertion failed (!fixedSize() || ((Mat*)obj)->size.operator()() == Size(_cols, _rows)) in create, file /home/bnnt/opencv-3.1.0/modules/core/src/matrix.cpp, line 2232
terminate called after throwing an instance of 'cv::Exception'
what(): /home/bnnt/opencv-3.1.0/modules/core/src/matrix.cpp:2232: error: (-215) !fixedSize() || ((Mat*)obj)->size.operator()() == Size(_cols, _rows) in function create

I find there no positive samples in "xP".
Do you know how to fix it?
Thanks a lot.

Aborted (core dumped)

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