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

Resnet152 #142

Open
ChrisXULC opened this issue Nov 25, 2020 · 1 comment
Open

Resnet152 #142

ChrisXULC opened this issue Nov 25, 2020 · 1 comment

Comments

@ChrisXULC
Copy link

请问如果我想把网络换成Resnet152,
class ResNet(nn.Module):
def init(self,c_in):
super(ResNet,self).init()
self.block0 = nn.Sequential(nn.Conv2d(c_in, 32, 3, 1, 1),nn.BatchNorm2d(32, momentum=0.01))
self.block1 = self._make_layer(32, 32, 2, 3)
self.block2 = self._make_layer(32, 64, 2, 8)
self.block3 = self._make_layer(64, 128, (2,1),8)
self.block4 = self._make_layer(128, 256, (2,1),36)
self.block5 = self._make_layer(256, 512, (2,1), 3)
然后进行模型训练 loss不断减小 但是acc一直为0 是为什么呀?十分谢谢。

@Canjie-Luo
Copy link
Owner

请问有更多细节吗,否则我不好回复~

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

2 participants