Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nbei committed Jul 15, 2019
1 parent e41fa56 commit e97d6b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions models/resnet_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,8 @@ def forward(self, x):
x = self.layer3(x)
x = self.layer4(x)

if self.isRefine:
res1x, res2x, res4x = self.layer5(x, input_size)
return res1x, res2x, res4x
else:
res = self.layer5(x, input_size)
return res
res = self.layer5(x, input_size)
return res

def train(self, mode=True, freezeBn=True):
super(ResNet, self).train(mode=mode)
Expand Down

0 comments on commit e97d6b5

Please sign in to comment.