supervision icon indicating copy to clipboard operation
supervision copied to clipboard

Refactor: Optimize annotate method in BoxAnnotator for performance and scalability

Open suyashw opened this issue 10 months ago • 2 comments
trafficstars

  • Precomputed colors for detections to eliminate redundant function calls.
  • Leveraged NumPy for batch processing of bounding box coordinates.
  • Simplified annotation loop to reduce computational overhead.
  • Improved code clarity by minimizing repetitive checks and type assertions.
  • Enhanced scalability for handling large-scale image annotation tasks.

suyashw avatar Jan 14 '25 16:01 suyashw

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 14 '25 16:01 CLAassistant

@suyashw thanks a lot for your interest in supervision. @suyashw / @soumik12345 have any of you measured annotator performance before and after that change?

SkalskiP avatar Jul 08 '25 09:07 SkalskiP