{"record":{"id":"fad2ffa52e659ff9","repo":"blakeblackshear/frigate","slug":"model-type-self-detector-config-model-model-type","errorCode":null,"errorMessage":"Model type \"{self.detector_config.model.model_type}\" is currently not supported.","messagePattern":"Model type \"(.+?)\" is currently not supported\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"frigate/detectors/plugins/axengine.py","lineNumber":95,"sourceCode":"        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:\n            return post_process_yolo(results, self.width, self.height)\n        else:\n            raise ValueError(\n                f'Model type \"{self.detector_config.model.model_type}\" is currently not supported.'\n            )\n","sourceCodeStart":77,"sourceCodeEnd":98,"githubUrl":"https://github.com/blakeblackshear/frigate/blob/ca18b8dc131ccb3e086f13a780853b775ef13426/frigate/detectors/plugins/axengine.py#L77-L98","documentation":"detect_raw dispatched on model_type and the model's model_type is not yologeneric, which is the only post-processing path implemented for the Axengine detector. Any other ModelTypeEnum value in the model metadata (ssd, yolonas, yolox, etc.) reaches the ValueError.","triggerScenarios":"Running the axengine detector with a custom model whose model_info/model_type is set (or defaults) to anything other than yologeneric, then an inference arrives and detect_raw runs.","commonSituations":"User supplies a custom .axmodel converted from an SSD or YOLO-NAS model; model_info.json incorrectly labels the type; plugin/version drift where older model metadata uses a different enum value.","solutions":["Use a YOLO generic-style model (model_type: yologeneric) with the axengine detector","If a custom model of another architecture is required, verify its model_info type can be set to yologeneric or wait for/patch support in post_process","Double-check the model_info.json / cached metadata for the model actually loaded"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"from frigate.detectors.detector_config import ModelTypeEnum\nassert config.model.model_type == ModelTypeEnum.yologeneric, 'axengine only supports yologeneric'","typeGuard":null,"tryCatchPattern":"try:\n    dets = detector.detect_raw(tensor)\nexcept ValueError as e:\n    if 'not supported' in str(e):\n        logger.error('Model type incompatible with axengine post-processing')\n    raise","preventionTips":["Use yologeneric models with the axengine detector","Keep model metadata consistent with the actual architecture","Test with a single frame at startup to fail fast"],"tags":["axengine","model-type","unsupported-model","post-processing"],"backgroundTag":"unsupported-model-variant","analyzedSha":"ca18b8dc131ccb3e086f13a780853b775ef13426","analyzedAt":"2026-08-27T11:28:05.618Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}