From d1aa07fcd1e24dd587eeffa0a4eea82e118ccbca Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 2 Dec 2025 14:10:08 +0100 Subject: [PATCH] fix format by using ruff instead of black --- frigate/detectors/plugins/edgetpu_tfl.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frigate/detectors/plugins/edgetpu_tfl.py b/frigate/detectors/plugins/edgetpu_tfl.py index 1ce10cc74..d95f8e4ee 100644 --- a/frigate/detectors/plugins/edgetpu_tfl.py +++ b/frigate/detectors/plugins/edgetpu_tfl.py @@ -272,9 +272,7 @@ class EdgeTpuTfl(DetectionApi): ) # initialize zero results scores_output_quantized = self.interpreter.get_tensor( self.scores_tensor_index - )[ - 0 - ] # (2100, NC) + )[0] # (2100, NC) max_scores_quantized = np.max( scores_output_quantized, axis=1 ) # (2100,) @@ -293,9 +291,7 @@ class EdgeTpuTfl(DetectionApi): # remove candidates with probabilities < threshold boxes_output_quantized_filtered = ( self.interpreter.get_tensor(self.boxes_tensor_index)[0] - )[ - mask - ] # (N, 64) + )[mask] # (N, 64) boxes_output_filtered = ( boxes_output_quantized_filtered.astype(np.float32) - self.boxes_zero_point