lancelee98 / CoordAttention_keras

keras-CoordAttention
8 stars 1 forks source link

can't run #1

Open ljc1231 opened 2 years ago

ljc1231 commented 2 years ago

ImportError: cannot import name 'ReLU'

lancelee98 commented 2 years ago

https://stackoverflow.com/questions/52876496/importerror-cannot-import-name-relu-in-keras-2-1-3# Probably, it results from the Keras version. Keras 2.4.3 is used in my project.

ljc1231 commented 2 years ago

https://stackoverflow.com/questions/52876496/importerror-cannot-import-name-relu-in-keras-2-1-3# Probably, it results from the Keras version. Keras 2.4.3 is used in my project.

i use "tmpx = Activation('relu')(x) ",but now it has the problem "AttributeError: 'Tensor' object has no attribute '_keras_history'",i checked the code only include keras function not tf, i don't know how to fix it?