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

Two questions about the code #32

Open
foralliance opened this issue Jun 7, 2018 · 0 comments
Open

Two questions about the code #32

foralliance opened this issue Jun 7, 2018 · 0 comments

Comments

@foralliance
Copy link

foralliance commented Jun 7, 2018

@taokong
@taokongcn

  1. 在test.py文件和paper中指出:

  scores = np.tile(scores[:, 0], (imdb.num_classes, 1)).transpose() * scores

  相当于给"分类(21分类)得分"乘以了"其属于物体的概率".为什么采用这种得分形式?为什么要进行这样的处理?

  1. 在anchor_target_layer.py和det_target_layer.py中,
  if len(fg_inds) > 0:
            num_bg = len(fg_inds) *  (1.0 - cfg.TRAIN.FG_FRACTION) / (cfg.TRAIN.FG_FRACTION)
        else:
            num_bg = self._batch
    
        bg_inds = np.where(all_labels == 0)[0]
        if len(bg_inds) > num_bg:
            disable_inds = npr.choice(bg_inds, size=int(len(bg_inds) - num_bg), replace=False)
            all_labels[disable_inds] = -1

  感觉只要存在正样本,这个batch_size参数就没用了.这是只是保证正负样本比例是1:3,并不考虑正负样本的总数(超过256/512也可以).这样的理解对吗?

  麻烦了!!

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