inpainting_gmcnn
inpainting_gmcnn copied to clipboard
AttributeError: module 'tensorflow' has no attribute 'layers'
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.
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