train_cnn.py
Created by: sujiongming
def main(weights_file): .... model = get_top_layer_model(model) model = train_model(model, 10, generators)
I think get_top_layer_model(model) should be get_top_layer_model(base_model) . In your code, none of layers will be trained because all layers of model have been set " trainable = False"