Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrei-Claudiu Roibu
BrainMapper
Commits
76c6a42a
Commit
76c6a42a
authored
Aug 19, 2020
by
Andrei Roibu
Browse files
commented out the removal of the logs dir if path exists when using last checkpoint
parent
55ffe4c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/data_logging_utils.py
View file @
76c6a42a
...
...
@@ -55,11 +55,11 @@ class LogWriter():
logs_directory
,
experiment_name
,
"validation"
)
# If the logs directory exist, we clear their contents to allow new logs to be created
if
not
use_last_checkpoint
:
if
os
.
path
.
exists
(
training_logs_directory
):
shutil
.
rmtree
(
training_logs_directory
)
if
os
.
path
.
exists
(
validation_logs_directory
):
shutil
.
rmtree
(
validation_logs_directory
)
#
if not use_last_checkpoint:
#
if os.path.exists(training_logs_directory):
#
shutil.rmtree(training_logs_directory)
#
if os.path.exists(validation_logs_directory):
#
shutil.rmtree(validation_logs_directory)
self
.
log_writer
=
{
'train'
:
SummaryWriter
(
logdir
=
training_logs_directory
),
...
...
Write
Preview
Supports
Markdown
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