File "/content/StackGAN-v2-rev/code/trainer.py", line 20, in
from tensorboard import FileWriter
ImportError: cannot import name 'FileWriter'
==> Use tensorboard-pytorch (pip install tensorboard-pytorch). Do this:
from torch.utils.tensorboard import summary
from torch.utils.tensorboard import FileWriter
instead of:
from tensorboard import summary
from tensorboard import FileWriter
File "/content/StackGAN-v2-rev/code/trainer.py", line 20, in
from tensorboard import FileWriter
ImportError: cannot import name 'FileWriter'
==> Use tensorboard-pytorch (pip install tensorboard-pytorch). Do this: from torch.utils.tensorboard import summary from torch.utils.tensorboard import FileWriter instead of: from tensorboard import summary from tensorboard import FileWriter