inpainting_gmcnn icon indicating copy to clipboard operation
inpainting_gmcnn copied to clipboard

AttributeError: module 'tensorflow' has no attribute 'layers'

Open Dongshao-CS opened this issue 3 years ago • 1 comments

When I was running the train.py , this error occurred: self.conv7 = partial(tf.layers.conv2d, kernel_size=7, activation=tf.nn.elu, padding='SAME') AttributeError: module 'tensorflow' has no attribute 'layers' and I could not find the solution,please help me.

Dongshao-CS avatar May 09 '21 15:05 Dongshao-CS

You are using Tensorflow v.2. This code is written in Tensorflow v.1. You can upgrade the code to v2 using this https://www.tensorflow.org/guide/upgrade or just install an older Tensorflow version

kopop8 avatar May 12 '21 09:05 kopop8