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

what's the aim of padding 0? what's the meaning of cat_num? #52

Open
newbieTo opened this issue Jun 30, 2021 · 2 comments
Open

what's the aim of padding 0? what's the meaning of cat_num? #52

newbieTo opened this issue Jun 30, 2021 · 2 comments

Comments

@newbieTo
Copy link

newbieTo commented Jun 30, 2021

x_pad = F.pad(x, (self.pad_side, self.pad_side, self.pad_side, self.pad_side), mode='constant', value=0)
part_feature = part_feature[:, :CAT_NUM, ...].contiguous()

Would appreciate your suggestion.

@xiaoweidao
Copy link

Hello, do you know what cat_num is?

@AndrewTal
Copy link

Pad:初始化的时候已经加上偏移了,目的是考虑到某些anchor box会出界。
self.pad_side = 224
self.edge_anchors = (edge_anchors + 224).astype(np.int)

CAT_NUM: 表示多少个Patch的特征和整图特征拼接到一起。
其中 part_features(有s) 用来计算所有patch的loss,part_feature(没有s)和整图特征拼在一起计算损失。

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

3 participants