You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i installed tensorboardX, but your code imports summary writer from tensorboard, gives error. how can i solve this.
if i use
from tensorboard import SummaryWriter
ImportError: cannot import name SummaryWriter
if i use,
from tensorboardX import SummaryWriter
Traceback (most recent call last):
File "/home/rahul/rahul/pytorch-semantic-segmentation-master/train/voc-fcn/train.py", line 7, in
from tensorboardX import SummaryWriter
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/init.py", line 5, in
from .torchvis import TorchVis
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/torchvis.py", line 11, in
from .writer import SummaryWriter
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/writer.py", line 223
logdir: Optional[str] = None,
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
hello author,
i installed tensorboardX, but your code imports summary writer from tensorboard, gives error. how can i solve this.
if i use
from tensorboard import SummaryWriter
ImportError: cannot import name SummaryWriter
if i use,
from tensorboardX import SummaryWriter
Traceback (most recent call last):
File "/home/rahul/rahul/pytorch-semantic-segmentation-master/train/voc-fcn/train.py", line 7, in
from tensorboardX import SummaryWriter
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/init.py", line 5, in
from .torchvis import TorchVis
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/torchvis.py", line 11, in
from .writer import SummaryWriter
File "/home/rahul/anaconda3/envs/semseg/lib/python2.7/site-packages/tensorboardX/writer.py", line 223
logdir: Optional[str] = None,
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: