mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-18 07:29:45 +00:00
style(axelera): collapse single-line raise per ruff format
Matches the pinned ruff 0.15.20 used by upstream CI (docker/main/requirements-dev.txt).
This commit is contained in:
parent
5fa8bf75dd
commit
c43a95bfe2
@ -243,9 +243,7 @@ class _AxeleraInference:
|
||||
if frame.ndim == 4:
|
||||
# Frigate feeds a batched NHWC frame (1, H, W, C); drop the batch dim
|
||||
if frame.shape[0] != 1:
|
||||
raise ValueError(
|
||||
f"Unexpected batch dimension in frame: {frame.shape}"
|
||||
)
|
||||
raise ValueError(f"Unexpected batch dimension in frame: {frame.shape}")
|
||||
frame = frame[0]
|
||||
frame = np.ascontiguousarray(frame)
|
||||
self._frame_q.put(frame)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user