{"record":{"id":"6efb6bc3931bb21e","repo":"tensorflow/models","slug":"class-class-name-is-not-assigned-to-any-collap","errorCode":null,"errorMessage":"Class '{class_name}' is not assigned to any collapsed category.","messagePattern":"Class '(.+?)' is not assigned to any collapsed category\\.","errorType":"exception","errorClass":"ConfigurationError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/model_inference_with_tracking/sam3_dinov3_tracking_pipeline/config_loader.py","lineNumber":226,"sourceCode":"\n    Args:\n      class_name: The fine-grained class name to look up.\n\n    Returns:\n      The matching category name when the feature is enabled, or None when the\n      feature is disabled.\n\n    Raises:\n      ConfigurationError: If the feature is enabled but the class is not present\n        in any category (this indicates the validation in `from_yaml` was\n        bypassed).\n    \"\"\"\n    if not self.enable:\n      return None\n    for category_name, class_list in self.mapping.items():\n      if class_name in class_list:\n        return category_name\n    raise ConfigurationError(\n        f\"Class '{class_name}' is not assigned to any collapsed category.\"\n    )\n\n  @property\n  def category_names(self) -> list[str]:\n    \"\"\"Returns the configured category names in declaration order.\n\n    Returns:\n      List of category names. Empty list when the feature is disabled.\n    \"\"\"\n    if not self.enable:\n      return []\n    return list(self.mapping.keys())\n\n\ndef build_collapsed_categories_config(\n    raw_section: Mapping[str, Any] | None, classes: Sequence[str]\n) -> CollapsedCategoriesConfig:","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/model_inference_with_tracking/sam3_dinov3_tracking_pipeline/config_loader.py#L208-L244","documentation":"Error \"Class '{class_name}' is not assigned to any collapsed category.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/model_inference_with_tracking/sam3_dinov3_tracking_pipeline/config_loader.py:226 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}