hi there,
this article describes how to unfreeze specific layers in a pretrained model in Keras.
with something like this
||for layer in vgg16_trainable.layers:|
| --- | --- |
||if layer.name in ['block5_conv3']: #,'block5_conv2','block5_conv1']:|
||layer.trainable = True|
||else:|
||layer.trainable = False|
|||
||for layer in vgg16_trainable.layers:|
||print(layer.name, layer.trainable)|
Now i wonder: how is the same thing done in fastai / pytorch?
can the freeze() unfreeze() functions be as specific as in that Keras example?
thanks