1 ImageNet分类网络微调 可以直接修改模型的成员layer,例如: model.fc = nn.Linear(fc_features, n) 2 COCO预训练微调 需要对head部分进行修改;