tensorflow/models · error · ValueError
Invalid subset "{subset}". The available subsets are: {self.
Error message
Invalid subset "{subset}". The available subsets are: {self._SUBSETS} What it means
Error "Invalid subset "{subset}". The available subsets are: {self._SUBSETS}" thrown in tensorflow/models.
Source
Thrown at official/projects/videoglue/datasets/video_classification.py:48
_TABLES = {
'train': 'sample.tfrecord',
'test': 'sample.tfrecord',
}
_SUBSETS = ('train', 'test')
_NUM_CLASSES = 400
_INPUT_LABEL_INDEX_KEY = 'clip/label/index'
_OUTPUT_LABEL_INDEX_KEY = 'label'
def __init__(
self,
subset: str = 'train'):
"""Initializes the factory."""
if subset not in self._SUBSETS:
raise ValueError(f'Invalid subset "{subset}".'
f' The available subsets are: {self._SUBSETS}')
table_name = os.path.join(self._BASE_DIR, self._TABLES[subset])
shards = utils.get_shards(table_name)
super().__init__(shards)
def _build(
self,
is_training: bool = True,
# Video related parameters.
num_frames: int = 32,
temporal_stride: int = 1,
sample_from_segments: bool = False,
# Image related parameters.
min_resize: int = 256,
crop_size: int = 224,
zero_centering_image: bool = False,View on GitHub (pinned to e006f5f0d5)
When it happens
Trigger: Thrown at official/projects/videoglue/datasets/video_classification.py:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24).
Data as JSON: /api/errors/93f3709763fce3de.
Report an issue: GitHub.