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

数据增强的疑问 #38

Open
oftenliu opened this issue Jun 30, 2019 · 0 comments
Open

数据增强的疑问 #38

oftenliu opened this issue Jun 30, 2019 · 0 comments

Comments

@oftenliu
Copy link

  1. 代码段augmentations.py:412~416行
    centers = (boxes[:, :2] + boxes[:, 2:]) / 2.0
    m1 = (choice_box[0] < centers[:, 0]) * (choice_box[1] < centers[:, 1])
    m2 = (choice_box[2] > centers[:, 0]) * (choice_box[3] > centers[:, 1])
    mask = m1 * m2#是否包含某个box的中心点 #这个保留face box的依据带考究 只要中心点
    在sample_boxes中就保存
    current_boxes = boxes[mask, :].copy()
    通过判断源face box的中心点是否在crop区域来确定该box是否保留?这个原则是否会出现一些box中人脸占比很少的情况?
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