if self._evaluate_masks:
      if (standard_fields.InputDataFields.groundtruth_instance_masks
          not in groundtruth_dict):
        raise ValueError('Instance masks not in groundtruth dictionary.')
      groundtruth_masks = groundtruth_dict[