use nms in the model itself, simplify and make postprocess faster.

make inference in batches, fix c# handling, add overlap handling
This commit is contained in:
Alex Bezdieniezhnykh
2025-02-10 14:55:00 +02:00
parent ba3e3b4a55
commit c1b5b5fee2
19 changed files with 259 additions and 140 deletions
+8 -1
View File
@@ -1,10 +1,17 @@
cdef class Detection:
cdef public double x, y, w, h, confidence
cdef public str annotation_name
cdef public int cls
cdef public overlaps(self, Detection det2)
cdef class Annotation:
cdef bytes image
cdef public str name
cdef public str original_media_name
cdef long time
cdef public list[Detection] detections
cdef public bytes image
cdef format_time(self, ms)
cdef bytes serialize(self)