ykamikawa / tf-keras-SegNet

SegNet including indices pooling for Semantic Segmentation with tensorflow and keras
178 stars 80 forks source link

module 'keras.backend' has no attribute 'tf' #14

Open dengfenglai321 opened 4 years ago

dengfenglai321 commented 4 years ago

when i run ,it display the error: module 'keras.backend' has no attribute 'tf'

can you help me

MyDuan commented 4 years ago

I have the same problem, but I solved it by change the K.tf.nn.max_pool_with_argmax => tf.nn.max_pool_with_argmax Also changed other K.tf. => tf.

mixaal commented 3 years ago

Also it's needed to replace the: with K.tf.variable_scope(self.name): to: with tf.compat.v1.variable_scope(self.name):