Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Commits
00d340f3
Verified
Commit
00d340f3
authored
2 years ago
by
Yoann Schneider
Browse files
Options
Downloads
Patches
Plain Diff
check if mlflow is available at runtime
parent
e9f6b6d5
No related branches found
No related tags found
1 merge request
!60
Resume from existing mlflow run
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dan/manager/training.py
+5
-0
5 additions, 0 deletions
dan/manager/training.py
dan/ocr/document/train.py
+0
-7
0 additions, 7 deletions
dan/ocr/document/train.py
dan/utils.py
+3
-0
3 additions, 0 deletions
dan/utils.py
with
8 additions
and
7 deletions
dan/manager/training.py
+
5
−
0
View file @
00d340f3
...
...
@@ -23,6 +23,11 @@ from tqdm import tqdm
from
dan.manager.metrics
import
MetricManager
from
dan.ocr.utils
import
LM_ind_to_str
from
dan.schedulers
import
DropoutScheduler
try
:
import
mlflow
from
dan.mlflow
import
logging_metrics
,
logging_tags_metrics
except
ImportError
:
pass
try
:
import
mlflow
...
...
This diff is collapsed.
Click to expand it.
dan/ocr/document/train.py
+
0
−
7
View file @
00d340f3
...
...
@@ -28,13 +28,6 @@ try:
except
ImportError
:
MLFLOW
=
False
try
:
import
mlflow
MLFLOW
=
True
logger
.
info
(
"
MLflow Logging available.
"
)
except
ImportError
:
MLFLOW
=
False
logger
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
dan/utils.py
+
3
−
0
View file @
00d340f3
...
...
@@ -23,7 +23,10 @@ class MLflowNotInstalled(Exception):
Raised when MLflow logging was requested but the module was not installed
"""
<<<<<<<
HEAD
=======
>>>>>>>
bf9cf44
(
check
if
mlflow
is
available
at
runtime
)
def
randint
(
low
,
high
):
"""
call torch.randint to preserve random among dataloader workers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment