Skip to content

Commit

Permalink
Momentum updater hook (open-mmlab#2571)
Browse files Browse the repository at this point in the history
* Pass momentum_config to register_training_hooks

* Bump mmcv version

* Explicit default
  • Loading branch information
daavoo authored Apr 30, 2020
1 parent 7d269c1 commit 2eca95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mmdet/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def train_detector(model,

# register hooks
runner.register_training_hooks(cfg.lr_config, optimizer_config,
cfg.checkpoint_config, cfg.log_config)
cfg.checkpoint_config, cfg.log_config,
cfg.get('momentum_config', None))
if distributed:
runner.register_hook(DistSamplerSeedHook())

Expand Down
2 changes: 1 addition & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
matplotlib
mmcv>=0.4.0
mmcv>=0.4.4
numpy
# need older pillow until torchvision is fixed
Pillow<=6.2.2
Expand Down

0 comments on commit 2eca95e

Please sign in to comment.