mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-30 03:46:50 +03:00
Implement UI for managing multiple models (#24023)
* Implement hardware detection and UI management * Cleanup Frigate+ detection * Don't count model as changed * Fixes for audio map error * Add descriptions * Enforce that all model must exist * Fix hardware picking * Docs fixes * WebUI cleanup * Cleanup handling of scenes * UI refinement * Cleanup recommended UI * test fixews
This commit is contained in:
committed by
Josh Hawkins
parent
79ea68caa2
commit
07ba2357e6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Detection hardware as reported by GET /api/hardware/probe.
|
||||
*
|
||||
* A mixed payload on purpose: two Corals exercise the per-unit checkboxes and
|
||||
* the "already used by another model" state, while the Intel GPU exercises the
|
||||
* unlimited detector-count dropdown.
|
||||
*/
|
||||
export const DETECTION_HARDWARE = [
|
||||
{
|
||||
key: "edgetpu:pci",
|
||||
detector: "edgetpu",
|
||||
name: "Coral EdgeTPU (PCIe)",
|
||||
units: [
|
||||
{ device: "edgetpu:pci:0", label: "PCIe 0" },
|
||||
{ device: "edgetpu:pci:1", label: "PCIe 1" },
|
||||
],
|
||||
count: 2,
|
||||
unlimited: false,
|
||||
},
|
||||
{
|
||||
key: "openvino:GPU",
|
||||
detector: "openvino",
|
||||
name: "Intel GPU",
|
||||
units: [
|
||||
{ device: "openvino:GPU.0", label: "0000:00:02.0" },
|
||||
{ device: "openvino:GPU.1", label: "0000:03:00.0" },
|
||||
],
|
||||
count: 2,
|
||||
unlimited: true,
|
||||
},
|
||||
{
|
||||
key: "cpu",
|
||||
detector: "cpu",
|
||||
name: "CPU",
|
||||
units: [{ device: "cpu", label: "CPU" }],
|
||||
count: 1,
|
||||
unlimited: true,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user