I implemented a binary classifier using DenseNet as a base with some custom layers at the end of the model. I'm using the follow code which gives me: KeyError: "Strides with Custom Model'
model = load_model('densenet_500')
new_model = to_heatmap(model)
idx = 0
display_heatmap(new_model,TEST_DATA[0],idx)
I implemented a binary classifier using DenseNet as a base with some custom layers at the end of the model. I'm using the follow code which gives me: KeyError: "Strides with Custom Model'
model = load_model('densenet_500') new_model = to_heatmap(model) idx = 0 display_heatmap(new_model,TEST_DATA[0],idx)
The error comes from to_heatmap():
244 layer = model.layers[index] 245 dic = layer.get_config() --> 246 atrous_rate = dic["strides"][0] 247 dic["strides"] = (1, 1) 248 new_pool = from_config(layer, dic)