Hi,
after trying a nice transfer learning tutorial I’m trying to get the right way of freezing a ResNet18 except not only the fully connected layer, but also the (layer4) block. Should I freeze the net and construct these layers newly? Then it’s unclear how to configure the optimizer instead of:
optimizer_conv = optim.SGD(model_conv.fc.parameters(), lr=0.001, momentum=0.9)
I’d greatly appreciate any advice.