Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to understand the value we put in _iou_mask? #110

Open
lizhe960118 opened this issue Mar 21, 2019 · 1 comment
Open

How to understand the value we put in _iou_mask? #110

lizhe960118 opened this issue Mar 21, 2019 · 1 comment

Comments

@lizhe960118
Copy link

iou_penalty = 0 - iou_pred_np[best_ious < cfg.iou_thresh]
_iou_mask[best_ious <= cfg.iou_thresh] = cfg.noobject_scale * iou_penalty
iou_pred_cell_anchor = iou_pred_np[cell_ind, a, :]
_iou_mask[cell_ind, a, :] = cfg.object_scale * (1 - iou_pred_cell_anchor)

when there is no object or the best iou is smaller than thresh, why not just let the value in iou_mask is cfg.noobject_scale, when there is object, let _iou_mask[cell_ind, a, :] to be cfg.object_scale?

@lizhe960118
Copy link
Author

see the issue 23, i think this is a bug to be fixed

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant