Migrate Hailo detector key and support hailo device (#24327)

* Migrate Hailo detector key and support hailo device

* Fix missing check
This commit is contained in:
Nicolas Mowen
2026-09-14 08:23:36 -06:00
committed by GitHub
parent caa6edecac
commit 7821ecbb43
24 changed files with 417 additions and 61 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export function runnerNames(models: DetectionModelConfig[]): string[] {
export const PROBED_DETECTORS = new Set([
"cpu",
"edgetpu",
"hailo8l",
"hailo",
"memryx",
"openvino",
"onnx",
+17
View File
@@ -0,0 +1,17 @@
/** Matching Frigate+ models against the hardware that can run them. */
type PlusModel = {
supportedDetectors: string[];
// which Hailo device a Hailo model was built for, absent on every other model
hailoDevice?: string;
};
/**
* The detectors to show for a model.
*
* Every Hailo model supports the one hailo detector, so the device it was
* built for is what the user needs to see.
*/
export function describeSupportedDetectors(model: PlusModel): string {
return model.hailoDevice ?? model.supportedDetectors.join(", ");
}