mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
detector/yolo_utils: indentation, remove unused variable
This commit is contained in:
parent
de02ba761b
commit
da31ee197c
@ -15,7 +15,6 @@ def yolov8_preprocess(tensor_input, model_input_shape):
|
||||
|
||||
def yolov8_postprocess(model_input_shape, tensor_output, box_count = 20):
|
||||
model_box_count = tensor_output.shape[2]
|
||||
model_class_count = tensor_output.shape[1] - 4
|
||||
probs = tensor_output[0, 4:, :]
|
||||
all_ids = np.argmax(probs, axis=0)
|
||||
all_confidences = probs.T[np.arange(model_box_count), all_ids]
|
||||
|
Loading…
Reference in New Issue
Block a user