Skip to content

Commit

Permalink
fix res5 (PaddlePaddle#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywgz authored Apr 15, 2021
1 parent 133375e commit bd5d850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ppdet/modeling/backbones/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,9 @@ def __init__(self, depth=50):
if depth < 50:
feat_in = 256
na = NameAdapter(self)
block = BottleNeck if depth >= 50 else BasicBlock
self.res5 = Blocks(
depth, feat_in, feat_out, count=3, name_adapter=na, stage_num=5)
block, feat_in, feat_out, count=3, name_adapter=na, stage_num=5)
self.feat_out = feat_out if depth < 50 else feat_out * 4

@property
Expand Down

0 comments on commit bd5d850

Please sign in to comment.