Visualizing_Understanding_CNN_Implementation icon indicating copy to clipboard operation
Visualizing_Understanding_CNN_Implementation copied to clipboard

When I ran the 'activations.py', I met an error

Open tianyu0523 opened this issue 6 years ago • 2 comments

Could you please help me solve it?_20180812142809

tianyu0523 avatar Aug 12 '18 11:08 tianyu0523

Or what is the 'requirement.txt' for this model?

tianyu0523 avatar Aug 12 '18 12:08 tianyu0523

I get the same error. Because the tensorflow.keras version is different, this code use keras.layers.merge, but there is not merge in new keras. So you should use keras.layers.Concatenate(), so the solution is: conv_2 = [Conv2D(128, 5, activation="relu", name='conv_2_' + str(i + 1))(split_tensor(ratio_split=2, id_split=i)(conv_2)) for i in range(2)] conv_2 = keras.layers.Concatenate(axis=1,name="conv_2")(conv_2) try to revise all merge.

pvop avatar Nov 28 '18 01:11 pvop