I'm trying to replace the "fc1000"
layer in a NetModel
, what am I missing here:
net = NetModel["ResNet-152 Trained on ImageNet Competition Data"]
NetReplacePart[net, {
"fc1000" -> LinearLayer[2],
"prob" -> SoftmaxLayer[],
"Output" -> NetDecoder[{"Class", {"A", "B"}}]
}]
I would love it if someone could write a nice tutorial on real-world applications of inserting/tweaking/moving layers for partial retraining.