{"record":{"id":"07008ee9f5d9bdfb","repo":"open-mmlab/mmdetection","slug":"not-supported-youtubevis-datasetversion-dataset","errorCode":null,"errorMessage":"Not supported YouTubeVIS datasetversion: {dataset_version}","messagePattern":"Not supported YouTubeVIS datasetversion: (.+?)","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"mmdet/datasets/youtube_vis_dataset.py","lineNumber":51,"sourceCode":"                                'eagle', 'earless_seal', 'tennis_racket')\n\n        classes_2021_version = ('airplane', 'bear', 'bird', 'boat', 'car',\n                                'cat', 'cow', 'deer', 'dog', 'duck',\n                                'earless_seal', 'elephant', 'fish',\n                                'flying_disc', 'fox', 'frog', 'giant_panda',\n                                'giraffe', 'horse', 'leopard', 'lizard',\n                                'monkey', 'motorbike', 'mouse', 'parrot',\n                                'person', 'rabbit', 'shark', 'skateboard',\n                                'snake', 'snowboard', 'squirrel', 'surfboard',\n                                'tennis_racket', 'tiger', 'train', 'truck',\n                                'turtle', 'whale', 'zebra')\n\n        if dataset_version == '2019':\n            cls.METAINFO = dict(classes=classes_2019_version)\n        elif dataset_version == '2021':\n            cls.METAINFO = dict(classes=classes_2021_version)\n        else:\n            raise NotImplementedError('Not supported YouTubeVIS dataset'\n                                      f'version: {dataset_version}')\n","sourceCodeStart":33,"sourceCodeEnd":53,"githubUrl":"https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/datasets/youtube_vis_dataset.py#L33-L53","documentation":"YouTubeVisDataset.set_dataset_classes only accepts dataset_version '2019' or '2021', which select the matching class lists. Any other value raises NotImplementedError.","triggerScenarios":"Instantiating YouTubeVisDataset (or a config with type='YouTubeVisDataset') with dataset_version set to e.g. '2018', '2022', 'v2019', or omitted-but-typo'd values.","commonSituations":"Typos or assuming newer/older challenge years exist; case-sensitive version strings ('2019' not '2019_version').","solutions":["Use dataset_version='2019' or dataset_version='2021' exactly","Check the official youtube_vis config under configs/youtube_vis for the exact key"],"exampleFix":"# before\ndataset_version='2022'\n# after\ndataset_version='2021'","handlingStrategy":"validation","validationCode":"assert dataset_version in ('2019', '2021'), f'bad YouTubeVIS version: {dataset_version}'","typeGuard":"def is_valid_ytvis_version(v):\n    return v in ('2019', '2021')","tryCatchPattern":null,"preventionTips":["Use exact version strings from official youtube_vis configs","Add config schema validation before dataset init"],"tags":["mmdet","youtube-vis","dataset-version","config-validation"],"backgroundTag":"invalid-config-value","analyzedSha":"cfd5d3a985b0249de009b67d04f37263e11cdf3d","analyzedAt":"2026-08-27T20:54:20.183Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}