Skip to main content
3 of 3
added 4 characters in body
N.IT
  • 2k
  • 4
  • 20
  • 36

How to change the names of the layers of deep learning in Keras?

I am using vgg16 to create a deep learning model. I want to know how to change the names of the layers of deep learning in Keras?

I tried this

for layer in vgg_model.layers:
    layer.name = layer.name + str("_")

But when I change the names of the layers, the model accuracy become low.

N.IT
  • 2k
  • 4
  • 20
  • 36