Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
atlas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INM-1
BDA
software
analysis
atlas
atlas
Commits
6eb2b5c6
Commit
6eb2b5c6
authored
6 months ago
by
Schiffer, Christian
Browse files
Options
Downloads
Patches
Plain Diff
Added switch to disable writing of diagnostics
parent
adc0fbc1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
atlas/cli/atlas_cli.py
+3
-1
3 additions, 1 deletion
atlas/cli/atlas_cli.py
atlas/cli/dl.py
+7
-1
7 additions, 1 deletion
atlas/cli/dl.py
with
10 additions
and
2 deletions
atlas/cli/atlas_cli.py
+
3
−
1
View file @
6eb2b5c6
...
...
@@ -54,7 +54,8 @@ def dl_cli():
@click.option
(
"
--quiet
"
,
default
=
False
,
type
=
bool
,
help
=
"
Disable debug logging for slave processors.
"
,
is_flag
=
True
)
@click.option
(
"
--dms/--no-dms
"
,
default
=
True
,
type
=
bool
,
help
=
"
Use dead man switch (DMS). Default is enable.
"
,
is_flag
=
True
)
@click.option
(
"
--log-limit-cpus
"
,
default
=
None
,
type
=
int
,
help
=
"
Omit logging of non-coordinator processes beyond this many CPUs. Unlimited by default.
"
)
def
dl_train
(
experiment_folders
,
verbose
,
distribute
,
profile
,
fake_gpus
,
dry
,
fake_data
,
fake_samples
,
cache_mode
,
files_to_cache
,
slaves_per_master
,
quiet
,
dms
,
log_limit_cpus
):
@click.option
(
"
--diagnostics/--no-diagnostics
"
,
default
=
True
,
type
=
bool
,
help
=
"
Save diagnostics at the end of the run. Default is false.
"
,
is_flag
=
True
)
def
dl_train
(
experiment_folders
,
verbose
,
distribute
,
profile
,
fake_gpus
,
dry
,
fake_data
,
fake_samples
,
cache_mode
,
files_to_cache
,
slaves_per_master
,
quiet
,
dms
,
log_limit_cpus
,
diagnostics
):
"""
Train a deep neural network. Each experiment_folder describes an experiment. The folder has to contain a file
named
"
config.py
"
, which contains the parameters for training and how to generate training and testing data for
...
...
@@ -91,6 +92,7 @@ def dl_train(experiment_folders, verbose, distribute, profile, fake_gpus, dry, f
quiet
=
quiet
,
use_dms
=
dms
,
log_limit_cpus
=
log_limit_cpus
,
save_diagnostics
=
diagnostics
,
)
...
...
This diff is collapsed.
Click to expand it.
atlas/cli/dl.py
+
7
−
1
View file @
6eb2b5c6
...
...
@@ -33,6 +33,7 @@ def train(
quiet
=
False
,
use_dms
=
True
,
log_limit_cpus
=
None
,
save_diagnostics
=
True
,
):
"""
Train a deep neural network. Each experiment_folder describes an experiment. The folder has to contain a file
...
...
@@ -54,6 +55,7 @@ def train(
quiet (bool): Disable logging for slave processors.
use_dms (bool): Use dead man switch (DMS).
log_limit_cpus (int): Omit logging of non coordinator processors beyond this many CPUs. Unlimited (None) by default.
save_diagnostics (bool): Whether to save diagnostics at the end of the run. Default is true.
"""
import
os
...
...
@@ -175,7 +177,11 @@ def train(
log
.
info
(
"
Finished training for {}
"
.
format
(
experiment_folder
))
# Save diagnostics file
if
save_diagnostics
:
log
.
info
(
f
"
Saving diagnostics to
{
files
.
get_diagnostics_path_of_run
(
run_dir
)
}
"
)
diagnostics
.
save
(
directory
=
files
.
get_diagnostics_path_of_run
(
run_dir
),
mode
=
"
training
"
)
else
:
log
.
info
(
"
Omitting saving diagnostics.
"
)
if
profile
:
profiling
.
stop_profiling
()
...
...
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