Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
1cb3e36a
Unverified
Commit
1cb3e36a
authored
Jun 05, 2020
by
Ye Liu
Committed by
GitHub
Jun 05, 2020
Browse files
Fix typo (#318)
parent
6875dcfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmcv/runner/base_runner.py
mmcv/runner/base_runner.py
+1
-1
mmcv/runner/epoch_based_runner.py
mmcv/runner/epoch_based_runner.py
+1
-1
No files found.
mmcv/runner/base_runner.py
View file @
1cb3e36a
...
@@ -266,7 +266,7 @@ class BaseRunner(metaclass=ABCMeta):
...
@@ -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
():
...
...
mmcv/runner/epoch_based_runner.py
View file @
1cb3e36a
...
@@ -165,5 +165,5 @@ class Runner(EpochBasedRunner):
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment