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

foreground RoIs selection #7

Open
hhhh12345678 opened this issue Sep 1, 2020 · 0 comments
Open

foreground RoIs selection #7

hhhh12345678 opened this issue Sep 1, 2020 · 0 comments

Comments

@hhhh12345678
Copy link

hhhh12345678 commented Sep 1, 2020

Select foreground RoIs as those with >= FG_THRESH overlap

fg_inds_first = np.where(max_overlaps >= cfg.TRAIN.FG_THRESH)[0]
fg_inds = []
for n in fg_inds_first:
    if indices[n] in gt_max or n in gt_indices[:, 0]:
        fg_inds.append(n)
    else:
        labels[n] = 0.  #why labels[n] is set be 0 here, is there means idx==n selected as a background one?
@hhhh12345678 hhhh12345678 changed the title foreground RoIs selec foreground RoIs selection Sep 1, 2020
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