Skip to content

Refactor: Optimize annotate method in BoxAnnotator for performance and scalability#1776

Draft
suyashw wants to merge 2 commits intoroboflow:developfrom
suyashw:refactor/annotate-imp-perf-and-scalability
Draft

Refactor: Optimize annotate method in BoxAnnotator for performance and scalability#1776
suyashw wants to merge 2 commits intoroboflow:developfrom
suyashw:refactor/annotate-imp-perf-and-scalability

Conversation

@suyashw
Copy link
Copy Markdown

@suyashw suyashw commented Jan 14, 2025

  • 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.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 14, 2025

CLA assistant check
All committers have signed the CLA.

@SkalskiP
Copy link
Copy Markdown
Collaborator

SkalskiP commented Jul 8, 2025

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

@Borda Borda marked this pull request as draft January 29, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants