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
afb73995
"vscode:/vscode.git/clone" did not exist on "d38a7854234b1a928ee70e62459a4b361b4e1019"
Unverified
Commit
afb73995
authored
Sep 24, 2020
by
David de la Iglesia Castro
Committed by
GitHub
Sep 25, 2020
Browse files
Add missing by_epoch arg (#576)
parent
50af0099
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
mmcv/runner/hooks/logger/mlflow.py
mmcv/runner/hooks/logger/mlflow.py
+8
-2
mmcv/runner/hooks/logger/wandb.py
mmcv/runner/hooks/logger/wandb.py
+3
-2
No files found.
mmcv/runner/hooks/logger/mlflow.py
View file @
afb73995
...
...
@@ -15,7 +15,8 @@ class MlflowLoggerHook(LoggerHook):
log_model
=
True
,
interval
=
10
,
ignore_last
=
True
,
reset_flag
=
True
):
reset_flag
=
True
,
by_epoch
=
True
):
"""Class to log metrics and (optionally) a trained model to MLflow.
It requires `MLflow`_ to be installed.
...
...
@@ -33,12 +34,17 @@ class MlflowLoggerHook(LoggerHook):
Default True.
If True, log runner.model as an MLflow artifact
for the current run.
interval (int): Logging interval (every k iterations).
ignore_last (bool): Ignore the log of last iterations in each epoch
if less than `interval`.
reset_flag (bool): Whether to clear the output buffer after logging
by_epoch (bool): Whether EpochBasedRunner is used.
.. _MLflow:
https://www.mlflow.org/docs/latest/index.html
"""
super
(
MlflowLoggerHook
,
self
).
__init__
(
interval
,
ignore_last
,
reset_flag
)
reset_flag
,
by_epoch
)
self
.
import_mlflow
()
self
.
exp_name
=
exp_name
self
.
tags
=
tags
...
...
mmcv/runner/hooks/logger/wandb.py
View file @
afb73995
...
...
@@ -13,9 +13,10 @@ class WandbLoggerHook(LoggerHook):
init_kwargs
=
None
,
interval
=
10
,
ignore_last
=
True
,
reset_flag
=
True
):
reset_flag
=
True
,
by_epoch
=
True
):
super
(
WandbLoggerHook
,
self
).
__init__
(
interval
,
ignore_last
,
reset_flag
)
reset_flag
,
by_epoch
)
self
.
import_wandb
()
self
.
init_kwargs
=
init_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