openvino: types

This commit is contained in:
Koushik Dutta
2024-05-24 22:43:11 -07:00
parent 4f60b7e379
commit 684961fa4b

View File

@@ -21,7 +21,7 @@ def parse_yolo_nas(predictions):
return objs
def parse_yolov9(results, threshold = defaultThreshold, scale = None, confidence_scale = None):
objs = []
objs: list[Prediction] = []
keep = np.argwhere(results[4:] > threshold)
for indices in keep:
class_id = indices[0]