mirror of https://github.com/open-mmlab/mmcv.git
Fix typo (#318)
parent
6875dcfe48
commit
1cb3e36a1e
|
@ -266,7 +266,7 @@ class BaseRunner(metaclass=ABCMeta):
|
||||||
policy_type = lr_config.pop('policy')
|
policy_type = lr_config.pop('policy')
|
||||||
# If the type of policy is all in lower case, e.g., 'cyclic',
|
# 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'.
|
# 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`,
|
# Since this is not applicable for `CosineAnealingLrUpdater`,
|
||||||
# the string will not be changed if it contains capital letters.
|
# the string will not be changed if it contains capital letters.
|
||||||
if policy_type == policy_type.lower():
|
if policy_type == policy_type.lower():
|
||||||
|
|
|
@ -165,5 +165,5 @@ class Runner(EpochBasedRunner):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'Runner was deprecated, please use DeprecationWarning instead')
|
'Runner was deprecated, please use EpochBasedRunner instead')
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue