You should try something along the lines of:
num_ftrs = net.classifier[-1].in_features
net.classifier[-1] = nn.Linear(num_ftrs, 7)

This will make the model output raw scores for seven classes instead of the default 1000.