{"record":{"id":"749de3f6311d4f21","repo":"blakeblackshear/frigate","slug":"self-onnx-model-type-is-currently-not-supported","errorCode":null,"errorMessage":"{self.onnx_model_type} is currently not supported for onnx. See the docs for more info on supported models.","messagePattern":"(.+?) is currently not supported for onnx\\. See the docs for more info on supported models\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"frigate/detectors/plugins/onnx.py","lineNumber":141,"sourceCode":"                    confidence,\n                    y_min / self.height,\n                    x_min / self.width,\n                    y_max / self.height,\n                    x_max / self.width,\n                ]\n            return detections\n        elif self.onnx_model_type == ModelTypeEnum.yologeneric:\n            return post_process_yolo(tensor_output, self.width, self.height)\n        elif self.onnx_model_type == ModelTypeEnum.yolox:\n            return post_process_yolox(\n                tensor_output[0],\n                self.width,\n                self.height,\n                self.grids,\n                self.expanded_strides,\n            )\n        else:\n            raise Exception(\n                f\"{self.onnx_model_type} is currently not supported for onnx. See the docs for more info on supported models.\"\n            )\n","sourceCodeStart":123,"sourceCodeEnd":144,"githubUrl":"https://github.com/blakeblackshear/frigate/blob/ca18b8dc131ccb3e086f13a780853b775ef13426/frigate/detectors/plugins/onnx.py#L123-L144","documentation":"The ONNX detector's detect_raw only implements decode paths for its supported model types (yolox/yologeneric style grids); any other onnx_model_type raises this Exception. It can surface during _warmup at startup, so it typically fails fast on the first inference.","triggerScenarios":"Configuring the onnx detector with a model whose model_type is not in the supported set, then the first detect_raw call (including automatic _warmup after init) hits the else branch.","commonSituations":"Using an SSD or YOLO-NAS onnx model with the onnx detector; wrong model_type in cached model_info; onnx exported with a head layout the plugin cannot decode.","solutions":["Use a supported ONNX model (YOLO-X / YOLO generic exports listed in Frigate docs)","Fix the model_type metadata to accurately reflect a supported architecture, or supply a model matching the configured type","Clear the model cache to regenerate correct model_info.json"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"from frigate.detectors.detector_config import ModelTypeEnum\nSUPPORTED_ONNX = {ModelTypeEnum.yolox, ModelTypeEnum.yologeneric}\nassert config.model.model_type in SUPPORTED_ONNX, 'onnx detector supports yolox/yologeneric only'","typeGuard":null,"tryCatchPattern":"try:\n    detector = LocalDetector(detector_config)  # triggers _warmup\nexcept Exception as e:\n    if 'not supported for onnx' in str(e):\n        raise SystemExit('Use a supported ONNX model export') from None\n    raise","preventionTips":["Use Frigate-listed ONNX models or exports with identical layout","Set model_type metadata accurately in model_info.json","Clear the model cache after replacing models"],"tags":["onnx","model-type","unsupported-model","detector"],"backgroundTag":"unsupported-model-variant","analyzedSha":"ca18b8dc131ccb3e086f13a780853b775ef13426","analyzedAt":"2026-08-27T11:28:05.618Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}