I am using different pretrained models for comparing the extracted features, but it seems that for different model has different input size and different feature size. Is there a uniform code to perform this? Also, different model has different parameter name for last fc layer, for example, for densenet, I have to use model.classifier=nn.Linear(in_features, out_size).