{"record":{"id":"93f3709763fce3de","repo":"tensorflow/models","slug":"invalid-subset-subset-the-available-subsets-a-93f370","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/video_classification.py","lineNumber":48,"sourceCode":"\n  _TABLES = {\n      'train': 'sample.tfrecord',\n      'test': 'sample.tfrecord',\n  }\n\n  _SUBSETS = ('train', 'test')\n\n  _NUM_CLASSES = 400\n  _INPUT_LABEL_INDEX_KEY = 'clip/label/index'\n  _OUTPUT_LABEL_INDEX_KEY = 'label'\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(\n      self,\n      is_training: bool = True,\n      # Video related parameters.\n      num_frames: int = 32,\n      temporal_stride: int = 1,\n      sample_from_segments: bool = False,\n      # Image related parameters.\n      min_resize: int = 256,\n      crop_size: int = 224,\n      zero_centering_image: bool = False,","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/videoglue/datasets/video_classification.py#L30-L66","documentation":"Error \"Invalid subset \"{subset}\". The available subsets are: {self._SUBSETS}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/videoglue/datasets/video_classification.py:48 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"}