Move sort and area calculations to batch_box() creation
Offload these calculations when the batch box is created since we're now copying by value, no need to recalculate these parameters. Reduces the work repeated for the top_box selected but still leverages parallelism for each subsequent box compared as our lambda in copy_if calls batch_box() prior to suppress_by_iou
Showing
Please register or sign in to comment