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 DeprecationWarning with UserWarning
  • Loading branch information
daavoo committed Oct 13, 2020
commit a5bba17c0857356ebacfd1e7af9bc212306c4990
2 changes: 1 addition & 1 deletion mmcls/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def train_model(model,
}
warnings.warn(
'config is now expected to have a `runner` section, '
'please set `runner` in your config.', DeprecationWarning)
'please set `runner` in your config.', UserWarning)

runner = build_runner(
cfg.runner,
Expand Down