Hamish - OVO
Part 1: Transfer learning
Text
Often best first step is to see what everyone else is using
????
🥔/❌
from torchvision import models
model = models.resnet32()
Zeiler et al 2016
# get pre-trained model
model = models.resnet18(pretrained=True)
# fix the parameters so they don't train
for param in model.parameters():
param.requires_grad = False
# define a new last layer with random initialistion
model.fc = nn.Linear(512, 1)