From 1cb3e36a1ea33caf272d2365c7d406123122b8d0 Mon Sep 17 00:00:00 2001 From: Ye Liu Date: Fri, 5 Jun 2020 14:03:19 +0800 Subject: [PATCH] Fix typo (#318) --- mmcv/runner/base_runner.py | 2 +- mmcv/runner/epoch_based_runner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mmcv/runner/base_runner.py b/mmcv/runner/base_runner.py index d98f702aa..8659c0673 100644 --- a/mmcv/runner/base_runner.py +++ b/mmcv/runner/base_runner.py @@ -266,7 +266,7 @@ class BaseRunner(metaclass=ABCMeta): policy_type = lr_config.pop('policy') # If the type of policy is all in lower case, e.g., 'cyclic', # then its first letter will be capitalized, e.g., to be 'Cyclic'. - # This is for the convenient usage of Lr updater updater. + # This is for the convenient usage of Lr updater. # Since this is not applicable for `CosineAnealingLrUpdater`, # the string will not be changed if it contains capital letters. if policy_type == policy_type.lower(): diff --git a/mmcv/runner/epoch_based_runner.py b/mmcv/runner/epoch_based_runner.py index 09bf120bf..9581eb48e 100644 --- a/mmcv/runner/epoch_based_runner.py +++ b/mmcv/runner/epoch_based_runner.py @@ -165,5 +165,5 @@ class Runner(EpochBasedRunner): def __init__(self, *args, **kwargs): warnings.warn( - 'Runner was deprecated, please use DeprecationWarning instead') + 'Runner was deprecated, please use EpochBasedRunner instead') super().__init__(*args, **kwargs)