Pytorch-yolov3: AttributeError: module 'tensorboard.summary._tf.summary' has no attribute 'FileWriter'

Created on 29 Oct 2019  路  13Comments  路  Source: eriklindernoren/PyTorch-YOLOv3

Which version of tensorflow should we use in this source code? Thanks!

Most helpful comment

try to use tf.summary.create_file_writer('log_dir') in tensorflow 2.0

All 13 comments

try to use tf.summary.create_file_writer('log_dir') in tensorflow 2.0

hello, my tf version is 2.0 ,it happend that in this version tensorflow has no attribute Summary, and I am new to tf, I don't know how to fix the code to solve this problem .
1

Go to this 930c587 to solve that problem.

Go to this 930c587 to solve that problem.

thank you so much (^鈻絕)

All previous solutions are appreciated , but I solved it by downgrading tensor flow version into 1.15.0

there is a better way, drop TensorFlow dependency completely, see #412

All previous solutions are appreciated.I solved it by the instruction of 930c587

How did you fix the error 'have no attribute 'Summary''

This works for me:

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

930c587 doesn't work to me, what should I do?

Go to this 930c587 to solve that problem.

Thks! It solved my problem too

@cesarhcq the tf dependency has been completely dropped on the current master

Was this page helpful?
0 / 5 - 0 ratings