Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use build_runner #54

Merged
merged 13 commits into from
Oct 15, 2020
Prev Previous commit
Next Next commit
Replace max_iters with max_epochs
  • Loading branch information
daavoo committed Oct 2, 2020
commit 21493b0a7de3f89af851d7273135b41dce02b59c
2 changes: 1 addition & 1 deletion mmcls/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def train_model(model,
if cfg.get('runner') is None:
cfg.runner = {
'type': 'EpochBasedRunner',
'max_iters': cfg.total_epochs
'max_epochs': cfg.total_epochs
}
warnings.warn(
'config is now expected to have a `runner` section, '
Expand Down