Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorboard #66

Open
soans1994 opened this issue Aug 6, 2021 · 0 comments
Open

tensorboard #66

soans1994 opened this issue Aug 6, 2021 · 0 comments

Comments

@soans1994
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant