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
0b7bd09d
Commit
0b7bd09d
authored
Apr 20, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
changed logging util from tensorboardX to torch.utils.tensorboard
parent
5514e9b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
0b7bd09d
...
...
@@ -15,7 +15,6 @@ setup(
'pandas'
,
'torch'
,
'h5py'
,
'tensorboardX'
,
'fslpy'
],
)
utils/data_logging_utils.py
View file @
0b7bd09d
...
...
@@ -24,7 +24,8 @@ import torch
# The SummaryWriter class provides a high-level API to create an event file in a given directory and add summaries and events to it.
# More here: https://tensorboardx.readthedocs.io/en/latest/tensorboard.html
from
tensorboardX
import
SummaryWriter
from
torch.utils.tensorboard
import
SummaryWriter
import
utils.data_evaluation_utils
as
evaluation
...
...
@@ -63,8 +64,8 @@ class LogWriter():
shutil
.
rmtree
(
testing_logs_directory
)
self
.
log_writer
=
{
'train'
:
SummaryWriter
(
logdir
=
training_logs_directory
),
'test'
:
SummaryWriter
(
logdir
=
testing_logs_directory
)
'train'
:
SummaryWriter
(
log
_
dir
=
training_logs_directory
),
'test'
:
SummaryWriter
(
log
_
dir
=
testing_logs_directory
)
}
self
.
confusion_matrix_color_map
=
confusion_matrix_cmap
...
...
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