TecoGAN icon indicating copy to clipboard operation
TecoGAN copied to clipboard

i got AttributeError: module 'tensorflow.python.ops.summary_op_util' has no attribute 'skip_summary'

Open skyzombie89 opened this issue 5 years ago • 6 comments

Traceback (most recent call last): File "main.py", line 284, in Net = TecoGAN( rdata.s_inputs, rdata.s_targets, FLAGS ) File "/home/ksjin/바탕화면/TecoGAN-master/lib/Teco.py", line 500, in TecoGAN gif_sum = [ gif_summary('LR', r_inputs, max_outputs=max_outputs, fps=3), File "/home/ksjin/바탕화면/TecoGAN-master/lib/ops.py", line 507, in gif_summary if summary_op_util.skip_summary(): AttributeError: module 'tensorflow.python.ops.summary_op_util' has no attribute 'skip_summary'

how can i fix this error?

tensorflow = 1.14 python =3.7.3

skyzombie89 avatar Jul 23 '19 15:07 skyzombie89

I have same problem in ubuntu 18.Then I try debian,it doesnt work as well.

a695649350 avatar Aug 02 '19 14:08 a695649350

skip_summary has moved to tensorflow.python.distribute.summary_op_util since v1.14 while other functionalities remain in tensorflow.python.ops.summary_op_util. So the fix is not one-liner. Why don't we stick to 1.13?

yamaton avatar Aug 09 '19 03:08 yamaton

I also have this problem. And I just comment these.

caijie0620 avatar Oct 08 '19 20:10 caijie0620

you can try rename like this : from tensorflow.python.ops import summary_op_util as tpos from tensorflow.python.distribute import summary_op_util as tpds

luyylemon avatar Oct 28 '19 09:10 luyylemon

How to fix it

Open file lib/ops.py

Add import line from tensorflow.python.distribute.summary_op_util import skip_summary

and change line 507 if summary_op_util.skip_summary() to if skip_summary()

Vakurin avatar May 22 '20 09:05 Vakurin

You could use my docker setup to avoid issues with incompatible tensorflow versions: https://github.com/tom-doerr/TecoGAN

tom-doerr avatar Jun 11 '20 03:06 tom-doerr