def remove_fc(state_dict):
    """Remove the fc layer parameters from state_dict."""
    new_dict = state_dict.copy()
    for key, value in new_dict.items():
        if key.startswith('fc.'):
            del state_dict[key]
    return state_dict