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

about num_neg=800 in training #107

Open
yangglebin opened this issue Jan 5, 2019 · 0 comments
Open

about num_neg=800 in training #107

yangglebin opened this issue Jan 5, 2019 · 0 comments

Comments

@yangglebin
Copy link

in your code(data_detector.py class LabelMapping ) :
if self.phase == 'train' and self.num_neg > 0:
neg_z, neg_h, neg_w, neg_a = np.where(label[:, :, :, :, 0] == -1)
neg_idcs = random.sample(range(len(neg_z)), min(num_neg, len(neg_z)))
neg_z, neg_h, neg_w, neg_a = neg_z[neg_idcs], neg_h[neg_idcs], neg_w[neg_idcs], neg_a[neg_idcs]
label[:, :, :, :, 0] = 0
label[neg_z, neg_h, neg_w, neg_a, 0] = -1

I noticed that you let num_neg=800 in final label, and set these locations equals to -1, what is this mean? Does it denote number of negative samples you choose? in label, 0 is object(foreground)? 1 is for? -1 is for?

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

1 participant