def _update_keypoint_candidate_score_threshold(model_config, threshold):
  """Updates the keypoint candidate score threshold. See CenterNet proto."""
  meta_architecture = model_config.WhichOneof("model")
  if meta_architecture == "center_net":
    if len(model_config.center_net.keypoint_estimation_task) == 1: