Skip to content

Commit

Permalink
remove DistSamplerSeedHook for IterBasedRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
youqingxiaozhua authored Oct 27, 2021
1 parent 52e6256 commit 94b6609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcls/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def train_model(model,
cfg.log_config,
cfg.get('momentum_config', None),
custom_hooks_config=cfg.get('custom_hooks', None))
if distributed:
if distributed and cfg.runner['type'] != 'IterBasedRunner':
runner.register_hook(DistSamplerSeedHook())

# register eval hooks
Expand Down

0 comments on commit 94b6609

Please sign in to comment.