tensorflow/models · error · ValueError
Evaluator is not supported.
Error message
Evaluator %s is not supported.
What it means
Dispatch guard in evaluator_generator: params.type (filled into %s) matched none of the known evaluator types (coco, oln_xclass_box, oln_xdata_box, ...), so no evaluator class could be constructed. Usually a misspelled type in the evaluation params config.
Solutions
- Set params.type to a supported evaluator type such as 'coco'
- Check the YAML/ JSON eval config for typos in the evaluator type field
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at official/legacy/detection/evaluation/factory.py:50 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/6ea4edf1aaa4d711.
Report an issue: GitHub.
Appendix: source
Thrown at official/legacy/detection/evaluation/factory.py:50
elif params.type == 'oln_xclass_box':
evaluator = coco_evaluator.OlnXclassEvaluator(
annotation_file=params.val_json_file, include_mask=False,
use_category=False, seen_class=params.seen_class,)
elif params.type == 'oln_xclass_box_and_mask':
evaluator = coco_evaluator.OlnXclassEvaluator(
annotation_file=params.val_json_file, include_mask=True,
use_category=False, seen_class=params.seen_class,)
elif params.type == 'oln_xdata_box':
evaluator = coco_evaluator.OlnXdataEvaluator(
annotation_file=params.val_json_file, include_mask=False,
use_category=False, seen_class='all',)
elif params.type == 'shapemask_box_and_mask':
evaluator = coco_evaluator.ShapeMaskCOCOEvaluator(
mask_eval_class=params.mask_eval_class,
annotation_file=params.val_json_file, include_mask=True)
else:
raise ValueError('Evaluator %s is not supported.' % params.type)
return coco_evaluator.MetricWrapper(evaluator)
View on GitHub (pinned to e006f5f0d5)