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
Uni-Core
Commits
4e4dc4b8
Unverified
Commit
4e4dc4b8
authored
Jan 12, 2023
by
Guolin Ke
Committed by
GitHub
Jan 12, 2023
Browse files
fix validate_with_ema option
parent
d01a62ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
unicore/options.py
unicore/options.py
+3
-2
No files found.
unicore/options.py
View file @
4e4dc4b8
...
...
@@ -137,7 +137,8 @@ def parse_args_and_arch(
args
.
no_seed_provided
=
True
else
:
args
.
no_seed_provided
=
False
args
.
validate_with_ema
=
getattr
(
args
,
"validate_with_ema"
,
False
)
# Apply architecture configuration.
if
hasattr
(
args
,
"arch"
)
and
args
.
arch
in
ARCH_CONFIG_REGISTRY
:
ARCH_CONFIG_REGISTRY
[
args
.
arch
](
args
)
...
...
@@ -194,7 +195,7 @@ def get_parser(desc, default_task='test'):
"main method can return a value (useful for sweeps)"
)
parser
.
add_argument
(
'--profile'
,
action
=
'store_true'
,
help
=
"enable autograd profiler emit_nvtx"
)
parser
.
add_argument
(
'--ema-decay'
,
default
=-
1.0
,
type
=
float
,
help
=
"enable moving average for model weights"
)
parser
.
add_argument
(
"--validate-with-ema"
,
default
=
False
,
action
=
"store_true"
)
parser
.
add_argument
(
"--validate-with-ema"
,
action
=
"store_true"
)
from
unicore.registry
import
REGISTRIES
...
...
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