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

Why number of labels has to be greater than 2 in MultiBoxTarget? #210

Open
nttstar opened this issue Jun 6, 2018 · 4 comments
Open

Why number of labels has to be greater than 2 in MultiBoxTarget? #210

nttstar opened this issue Jun 6, 2018 · 4 comments

Comments

@nttstar
Copy link

nttstar commented Jun 6, 2018

I saw one piece of code in MultiBoxTarget.cu below:

const int num_labels = labels.size(1);
CHECK_GT(num_labels, 2);

But why? I think one or two ground truth boxes are also valid for training.

@zhreshold
Copy link
Owner

Just to make reuse of some temporary buffer without malloc new space.

@nttstar
Copy link
Author

nttstar commented Jun 7, 2018

So we have to append '-1's if there are only 1 or 2 labels?

@zhreshold
Copy link
Owner

correct

@rkpandya
Copy link

I am also training on a different dataset and face this issue. Where do I append '-1'?

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

3 participants