Skip to content

Commit

Permalink
fixes #283
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanChen authored Mar 24, 2021
1 parent 9b07c52 commit 78fc5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def build_opt_lr(model, current_epoch=0):
m.eval()
if current_epoch >= cfg.BACKBONE.TRAIN_EPOCH:
for layer in cfg.BACKBONE.TRAIN_LAYERS:
for param in getattr(model.backbone, layer).parameters():
for param in getattr(model.backbone, layer)().parameters():
param.requires_grad = True
for m in getattr(model.backbone, layer).modules():
if isinstance(m, nn.BatchNorm2d):
Expand Down

0 comments on commit 78fc5f9

Please sign in to comment.