{"record":{"id":"8f3f934edfb5e9fa","repo":"blakeblackshear/frigate","slug":"model-model-path-is-unsupported-provide-your-ow","errorCode":null,"errorMessage":"Model {model_path} is unsupported. Provide your own model or choose one of the following: {supported_models_str}","messagePattern":"Model (.+?) is unsupported\\. Provide your own model or choose one of the following: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"frigate/detectors/plugins/axengine.py","lineNumber":74,"sourceCode":"        model_props = {}\n        model_props[\"preset\"] = True\n\n        model_matched = False\n\n        for model_type, pattern in supported_models.items():\n            if re.match(pattern, model_path):\n                model_matched = True\n                model_props[\"model_type\"] = model_type\n\n        if model_matched:\n            model_props[\"filename\"] = model_path + \".axmodel\"\n            model_props[\"path\"] = model_cache_dir + model_props[\"filename\"]\n\n            if not os.path.isfile(model_props[\"path\"]):\n                self.download_model(model_props[\"filename\"])\n        else:\n            supported_models_str = \", \".join(model[1:-1] for model in supported_models)\n            raise Exception(\n                f\"Model {model_path} is unsupported. Provide your own model or choose one of the following: {supported_models_str}\"\n            )\n        return model_props\n\n    def download_model(self, filename):\n        if not os.path.isdir(model_cache_dir):\n            os.mkdir(model_cache_dir)\n\n        HF_ENDPOINT = os.environ.get(\"HF_ENDPOINT\", \"https://huggingface.co\")\n        urllib.request.urlretrieve(\n            f\"{HF_ENDPOINT}/AXERA-TECH/frigate-resource/resolve/axmodel/{filename}\",\n            model_cache_dir + filename,\n        )\n\n    def detect_raw(self, tensor_input):\n        results = None\n        results = self.session.run(None, {\"images\": tensor_input})\n        if self.detector_config.model.model_type == ModelTypeEnum.yologeneric:","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/blakeblackshear/frigate/blob/ca18b8dc131ccb3e086f13a780853b775ef13426/frigate/detectors/plugins/axengine.py#L56-L92","documentation":"The configured model_path for the Axengine detector is neither a known built-in model filename (which would be resolved/downloaded from the model cache) nor a path the plugin recognizes, so parse_model_input refuses it. Only a fixed set of prebuilt models plus user-supplied .axmodel files on disk are supported.","triggerScenarios":"Calling parse_model_input (from Axengine detector __init__) with model_path set to a name not in the plugin's supported_models mapping and not an existing custom model file, e.g. a typo like 'yolov9-tiny-axera' or a filename without the expected suffix.","commonSituations":"Typo in model.path in frigate config; referencing a model that exists for other detectors (e.g. a .tflite name) with the axengine detector; assuming a new model variant is bundled when it is not.","solutions":["Check the error's supported model list and use one of those exact filenames in model.path","Or provide your own compiled .axmodel file path on disk accessible to the container","Verify the path/filename spelling and that the file is mounted into the container"],"exampleFix":"# before\ndetectors:\n  axengine:\n    type: axengine\n    model:\n      path: yolov9-tiny-wrong-name\n# after\ndetectors:\n  axengine:\n    type: axengine\n    model:\n      path: /models/my_model.axmodel  # or a listed supported model","handlingStrategy":"validation","validationCode":"# validate before startup against the plugin's supported list\nSUPPORTED = {...}  # from error message or plugin source\nassert model_path in SUPPORTED or os.path.isfile(model_path), f'use one of {SUPPORTED}'","typeGuard":null,"tryCatchPattern":"try:\n    detector = AxengineDetector(config)\nexcept Exception as e:\n    if 'unsupported' in str(e):\n        logger.error('Switch model.path to a listed model or a local .axmodel')\n    raise","preventionTips":["Copy the exact supported model names from the plugin error/docs","Mount custom .axmodel files into the container and reference by full path","Validate config in CI against the supported model list"],"tags":["axengine","model-path","unsupported-model","config"],"backgroundTag":"unsupported-model-variant","analyzedSha":"ca18b8dc131ccb3e086f13a780853b775ef13426","analyzedAt":"2026-08-27T11:28:05.618Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}