mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Various Fixes (#18035)
* Support multi and single core rknn npus * Update docs config to be more clear
This commit is contained in:
parent
da2636d6f7
commit
895afcdb0e
@ -152,7 +152,7 @@ Use this configuration for YOLO-based models. When no custom model path or URL i
|
||||
|
||||
```yaml
|
||||
detectors:
|
||||
hailo8l:
|
||||
hailo:
|
||||
type: hailo8l
|
||||
device: PCIe
|
||||
|
||||
@ -185,7 +185,7 @@ For SSD-based models, provide either a model path or URL to your compiled SSD mo
|
||||
|
||||
```yaml
|
||||
detectors:
|
||||
hailo8l:
|
||||
hailo:
|
||||
type: hailo8l
|
||||
device: PCIe
|
||||
|
||||
@ -209,7 +209,7 @@ The Hailo detector supports all YOLO models compiled for Hailo hardware that inc
|
||||
|
||||
```yaml
|
||||
detectors:
|
||||
hailo8l:
|
||||
hailo:
|
||||
type: hailo8l
|
||||
device: PCIe
|
||||
|
||||
|
@ -408,7 +408,13 @@ def get_rockchip_npu_stats() -> dict[str, str]:
|
||||
try:
|
||||
with open("/sys/kernel/debug/rknpu/load", "r") as f:
|
||||
npu_output = f.read()
|
||||
core_loads = re.findall(r"Core\d+:\s*(\d+)%", npu_output)
|
||||
|
||||
if "Core0:" in npu_output:
|
||||
# multi core NPU
|
||||
core_loads = re.findall(r"Core\d+:\s*(\d+)%", npu_output)
|
||||
else:
|
||||
# single core NPU
|
||||
core_loads = re.findall(r"NPU load:\s+(\d+)%", npu_output)
|
||||
except FileNotFoundError:
|
||||
core_loads = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user