rcmalli / keras-vggface

VGGFace implementation with Keras Framework
MIT License
928 stars 417 forks source link

Trainable param for predefined layers #47

Closed iesahin closed 2 years ago

iesahin commented 5 years ago
TF: 1.13.0-dev20190204
Keras: 2.2.4
Keras-VGGFace 0.5

Keras has a trainable param for layers. I would like to set this to False when I load the predefined weights for fine tuning, so that only the top layers I define are trained. I probably can do this myself with a PR but is there another mechanism to achieve this?

rcmalli commented 5 years ago

This is mostly about customization. It can be added to the library if you would like to contribute.

sherlockchou86 commented 4 years ago

no need to add to library, just set it if you want to fine-tuning by yourself.