Skip to content

Commit

Permalink
Replace tensorboardx with torch.utils.tensorboard (#158)
Browse files Browse the repository at this point in the history
* Replace tensorboardx with torch.utils.tensorboard

* Add tensorboard to dependencies
  • Loading branch information
ghisvail authored and mdiazmel committed Jun 2, 2021
1 parent c2f9089 commit 146d06e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def train(
options: (Namespace) ensemble of other options given to the main script.
logger: (logging object) writer to stdout and stderr
"""
from tensorboardX import SummaryWriter
from torch.utils.tensorboard import SummaryWriter

if logger is None:
logger = logging
Expand Down
2 changes: 1 addition & 1 deletion clinicadl/clinicadl/tools/deep_learning/cnn_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def train(
"""
from time import time

from tensorboardX import SummaryWriter
from torch.utils.tensorboard import SummaryWriter

if logger is None:
logger = logging
Expand Down
7 changes: 4 additions & 3 deletions clinicadl/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from os.path import dirname, join, abspath, pardir
from setuptools import setup, find_packages
from os.path import abspath, dirname, join, pardir

from setuptools import find_packages, setup

with open(join(dirname(__file__), "clinicadl/VERSION"), "rb") as f:
version = f.read().decode("ascii").strip()
Expand Down Expand Up @@ -35,6 +36,6 @@
"Intended Audience :: Developers",
"Programming Language :: Python",
],
install_requires=["numpy>=1.17", "clinica>=0.3.8", "tensorboardX"],
install_requires=["numpy>=1.17", "clinica>=0.3.8", "torch", "tensorboard"],
python_requires=">=3.6",
)
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
clinica>=0.3.6
nilearn
nipy
tensorboardX
torch
pandas
colorama
tensorboard

0 comments on commit 146d06e

Please sign in to comment.