Traceback (most recent call last):
File "D:\新建文件夹\PyTorch-YOLOv3\train.py", line 42, in
logger = Logger("logs")
File "D:\新建文件夹\PyTorch-YOLOv3\utils\logger.py", line 7, in init
self.writer = tf.summary.FileWriter(logdir)
AttributeError: module 'tensorboard.summary._tf.summary' has no attribute 'FileWriter'.
Traceback (most recent call last): File "D:\新建文件夹\PyTorch-YOLOv3\train.py", line 42, in
logger = Logger("logs")
File "D:\新建文件夹\PyTorch-YOLOv3\utils\logger.py", line 7, in init
self.writer = tf.summary.FileWriter(logdir)
AttributeError: module 'tensorboard.summary._tf.summary' has no attribute 'FileWriter'.
Why the error happens