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
7b7ee1b0
Commit
7b7ee1b0
authored
Aug 19, 2020
by
Andrei Roibu
Browse files
uncommented the delete path code
parent
10eab075
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/data_logging_utils.py
View file @
7b7ee1b0
...
...
@@ -50,11 +50,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
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