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
f49eb518
Verified
Commit
f49eb518
authored
2 years ago
by
Yoann Schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix lint
parent
5a1bcb92
No related branches found
No related tags found
1 merge request
!59
Robust mlflow requests
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dan/manager/training.py
+2
-0
2 additions, 0 deletions
dan/manager/training.py
dan/mlflow.py
+0
-1
0 additions, 1 deletion
dan/mlflow.py
dan/utils.py
+1
-0
1 addition, 0 deletions
dan/utils.py
with
3 additions
and
1 deletion
dan/manager/training.py
+
2
−
0
View file @
f49eb518
...
...
@@ -23,8 +23,10 @@ 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
...
...
This diff is collapsed.
Click to expand it.
dan/mlflow.py
+
0
−
1
View file @
f49eb518
...
...
@@ -8,7 +8,6 @@ from mlflow.exceptions import MlflowException
from
dan
import
logger
def
setup_environment
(
config
:
dict
):
"""
Get the necessary variables from the config file and put them in the environment variables
...
...
This diff is collapsed.
Click to expand it.
dan/utils.py
+
1
−
0
View file @
f49eb518
...
...
@@ -23,6 +23,7 @@ class MLflowNotInstalled(Exception):
Raised when MLflow logging was requested but the module was not installed
"""
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