Spaces:
Paused
Paused
Zhen Ye Claude Opus 4.6 commited on
Commit ·
e9834ad
1
Parent(s): 1c6c619
perf: set num_maskmem=3 for all inference paths
Browse filesReduces SAM2 temporal memory bank from 7 to 3 frames on both the
sync /detect endpoint and the async background job path to lower
GPU memory usage with minimal tracking quality impact.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Files changed (2)
301 unmodified lines302303304305306307301 unmodified linesoutput_path,query_list,segmenter_name=segmenter,)except ValueError as exc:logging.exception("Segmentation processing failed.")301 unmodified lines302303304305306307308301 unmodified linesoutput_path,query_list,segmenter_name=segmenter,num_maskmem=3,)except ValueError as exc:logging.exception("Segmentation processing failed.")
39 unmodified lines40414243444539 unmodified linesenable_gpt=job.enable_gpt,mission_spec=job.mission_spec,first_frame_gpt_results=job.first_frame_gpt_results,)else:detections_list = None39 unmodified lines4041424344454639 unmodified linesenable_gpt=job.enable_gpt,mission_spec=job.mission_spec,first_frame_gpt_results=job.first_frame_gpt_results,num_maskmem=3,)else:detections_list = None
app.py+1
jobs/background.py+1