mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
Compare commits
2 Commits
f316244495
...
4e71a835cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e71a835cb | ||
|
|
537e723c30 |
@ -3,7 +3,7 @@ id: installation
|
||||
title: Installation
|
||||
---
|
||||
|
||||
Frigate is a Docker container that can be run on any Docker host including as a [Home Assistant App](https://www.home-assistant.io/addons/). Note that the Home Assistant App is **not** the same thing as the integration. The [integration](/integrations/home-assistant) is required to integrate Frigate into Home Assistant, whether you are running Frigate as a standalone Docker container or as a Home Assistant App.
|
||||
Frigate is a Docker container that can be run on any Docker host including as a [Home Assistant App](https://www.home-assistant.io/apps/). Note that the Home Assistant App is **not** the same thing as the integration. The [integration](/integrations/home-assistant) is required to integrate Frigate into Home Assistant, whether you are running Frigate as a standalone Docker container or as a Home Assistant App.
|
||||
|
||||
:::tip
|
||||
|
||||
|
||||
@ -529,6 +529,17 @@ class RKNNModelRunner(BaseModelRunner):
|
||||
# Transpose from NCHW to NHWC
|
||||
pixel_data = np.transpose(pixel_data, (0, 2, 3, 1))
|
||||
rknn_inputs.append(pixel_data)
|
||||
elif name == "data":
|
||||
# ArcFace: undo Python normalisation to uint8 [0,255]
|
||||
# RKNN runtime applies mean=127.5/std=127.5 internally before first layer
|
||||
face_data = inputs[name]
|
||||
if len(face_data.shape) == 4 and face_data.shape[1] == 3:
|
||||
# Transpose from NCHW to NHWC
|
||||
face_data = np.transpose(face_data, (0, 2, 3, 1))
|
||||
face_data = (
|
||||
((face_data + 1.0) * 127.5).clip(0, 255).astype(np.uint8)
|
||||
)
|
||||
rknn_inputs.append(face_data)
|
||||
else:
|
||||
rknn_inputs.append(inputs[name])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user