tensorflow/models · error · ValueError
Parser is not supported.
Error message
Parser %s is not supported.
What it means
Dispatch guard in parser_generator: the parser name from params (filled into %s) matched none of the known input parsers (maskrcnn, retinanet, shapemask, ...). The input at fault is the params.parser.* configuration naming the data parser.
Solutions
- Set the parser type in the params/experiment config to a supported value such as 'maskrcnn_parser' or 'retinanet_parser'
- Verify the parser name spelling in the YAML/JSON config
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at official/legacy/detection/dataloader/factory.py:134 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/d720be8a9b3d0e1a.
Report an issue: GitHub.
Appendix: source
Thrown at official/legacy/detection/dataloader/factory.py:134
outer_box_scale=parser_params.outer_box_scale,
box_jitter_scale=parser_params.box_jitter_scale,
num_sampled_masks=parser_params.num_sampled_masks,
mask_crop_size=parser_params.mask_crop_size,
mask_min_level=parser_params.mask_min_level,
mask_max_level=parser_params.mask_max_level,
upsample_factor=parser_params.upsample_factor,
match_threshold=parser_params.match_threshold,
unmatched_threshold=parser_params.unmatched_threshold,
aug_rand_hflip=parser_params.aug_rand_hflip,
aug_scale_min=parser_params.aug_scale_min,
aug_scale_max=parser_params.aug_scale_max,
skip_crowd_during_training=parser_params.skip_crowd_during_training,
max_num_instances=parser_params.max_num_instances,
use_bfloat16=params.architecture.use_bfloat16,
mask_train_class=parser_params.mask_train_class,
mode=mode)
else:
raise ValueError('Parser %s is not supported.' % params.architecture.parser)
return parser_fn
View on GitHub (pinned to e006f5f0d5)