{"record":{"id":"f7518cc1f794d643","repo":"tensorflow/models","slug":"must-provide-at-least-one-of-training-file-pattern","errorCode":null,"errorMessage":"Must provide at least one of training_file_pattern and eval_file_pattern.","messagePattern":"Must provide at least one of training_file_pattern and eval_file_pattern\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/detection/main.py:218","lineNumber":218,"sourceCode":"  if not training_file_pattern and not eval_file_pattern:\n    raise ValueError('Must provide at least one of training_file_pattern and '\n                     'eval_file_pattern.')","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legaacy/detection/main.py#L218","documentation":"Config guard in the detection pipeline setup: both training_file_pattern and eval_file_pattern are empty, so the input_fn builder has no data to read for either phase. At least one pattern must be supplied to construct a usable dataset.","triggerScenarios":"Thrown at official/legaacy/detection/main.py:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set --training_file_pattern (e.g. '/data/train.tfrecord*') for training runs","Set --eval_file_pattern for evaluation-only runs"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}