You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-allocate buffers for `cv2.resize` and `cv2.cvtColor` operations in `ImageSegmenter` to avoid repetitive memory allocation per frame. This improves performance and reduces memory churn.
Measured improvement: ~14% increase in FPS (from ~59.5 FPS to ~68.2 FPS) on benchmark.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: fangfufu <2323403+fangfufu@users.noreply.github.com>
0 commit comments