Skip to content

Commit

Permalink
Merge pull request #121 from 103yiran/103yiran-train
Browse files Browse the repository at this point in the history
  Remove duplicate operations
  • Loading branch information
lb1100 authored Dec 20, 2019
2 parents 280c125 + 6d05621 commit 7835f64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ def main():

# create model
model = ModelBuilder().cuda().train()
dist_model = DistModule(model)

# load pretrained backbone weights
if cfg.BACKBONE.PRETRAINED:
Expand All @@ -291,7 +290,7 @@ def main():
train_loader = build_data_loader()

# build optimizer and lr_scheduler
optimizer, lr_scheduler = build_opt_lr(dist_model.module,
optimizer, lr_scheduler = build_opt_lr(model,
cfg.TRAIN.START_EPOCH)

# resume training
Expand Down

0 comments on commit 7835f64

Please sign in to comment.