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

关于BN层 #44

Open
war0927 opened this issue Nov 26, 2023 · 2 comments
Open

关于BN层 #44

war0927 opened this issue Nov 26, 2023 · 2 comments

Comments

@war0927
Copy link

war0927 commented Nov 26, 2023

请问当我应用iaff模块时候存在以下情况:1、F的batch_size为1;2、全局平均池化将特征图的面积变为1*1。这导致了经过BN层的时候会报错ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1]),请问这个有处理方法吗

@Niche180
Copy link

同样地问题,这样设置是否合理呢?

@liyiersan
Copy link

batch size设置为1,使用BN层没有意义,把Batch size改为大于1即可。

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