{"record":{"id":"ea3f4e666e24df56","repo":"tensorflow/models","slug":"invalid-subset-subset-the-available-subsets-a","errorCode":null,"errorMessage":"Invalid subset \"{subset}\". The available subsets are: {self._SUBSETS}","messagePattern":"Invalid subset \"(.+?)\"\\. The available subsets are: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/videoglue/datasets/action_localization.py","lineNumber":52,"sourceCode":"  _SUBSETS = ('train', 'test')\n\n  _KEYFRAME_INDEX_KEY = 'clip/key_frame/frame_index'\n  _GT_PREFIX = 'clip/key_frame'\n  _DETECTOR_PREFIX = 'centernet'\n  _ZERO_BASED_INDEX = False  # whether the labels are 0-indexed in the table.\n  # threshold to be applied for filtering detected boxes.\n  _TRAIN_DETECTION_SCORE = 0.9\n  _EVAL_DETECTION_SCORE = 0.8\n\n  _NUM_CLASSES = 80\n\n  def __init__(\n      self,\n      subset: str = 'train'):\n    \"\"\"Initializes the factory.\"\"\"\n\n    if subset not in self._SUBSETS:\n      raise ValueError(f'Invalid subset \"{subset}\".'\n                       f' The available subsets are: {self._SUBSETS}')\n\n    table_name = os.path.join(self._BASE_DIR, self._TABLES[subset])\n    shards = utils.get_shards(table_name)\n\n    super().__init__(shards)\n\n  def _build(self,\n             is_training: bool = True,\n             # Video related parameters.\n             num_frames: int = 32,\n             temporal_stride: int = 1,\n             num_instance_per_frame: int = 5,\n             # Image related parameters.\n             min_resize: int = 224,\n             crop_size: int = 200,\n             zero_centering_image: bool = False,\n             color_augmentation: bool = False,","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/videoglue/datasets/action_localization.py#L34-L70","documentation":"Error \"Invalid subset \"{subset}\". The available subsets are: {self._SUBSETS}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/videoglue/datasets/action_localization.py:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}