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
de90c7a2
Unverified
Commit
de90c7a2
authored
May 29, 2022
by
kira
Committed by
GitHub
May 29, 2022
Browse files
[Enhancement] Update the missing warning message for LrUpdaterHook (#2021)
parent
e5d9ef52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/runner/hooks/lr_updater.py
mmcv/runner/hooks/lr_updater.py
+1
-1
No files found.
mmcv/runner/hooks/lr_updater.py
View file @
de90c7a2
...
...
@@ -35,7 +35,7 @@ class LrUpdaterHook(Hook):
if
warmup
not
in
[
'constant'
,
'linear'
,
'exp'
]:
raise
ValueError
(
f
'"
{
warmup
}
" is not a supported type for warming up, valid'
' types are "constant"
and
"linear"'
)
' types are "constant"
,
"linear"
and "exp"
'
)
if
warmup
is
not
None
:
assert
warmup_iters
>
0
,
\
'"warmup_iters" must be a positive integer'
...
...
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