Spaces:
Paused
Paused
Zhen Ye Claude Opus 4.6 commited on
Commit ·
10eb3c6
1
Parent(s): 4c36e1e
fix: drop fullgraph=True from torch.compile for broader compatibility
Browse filesfullgraph=True requires no graph breaks, which fails without
SAM2VideoPredictorVOS's .clone() patches. Removing it allows
torch.compile to handle graph breaks gracefully via partial
compilation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
394 unmodified lines395396397398399400401402403404405394 unmodified lines"""vp = self._video_predictorcomponents = [("image_encoder", dict(mode="max-autotune", fullgraph=True, dynamic=False)),("memory_encoder", dict(mode="max-autotune", fullgraph=True, dynamic=False)),("memory_attention", dict(mode="max-autotune", fullgraph=True, dynamic=True)),("sam_prompt_encoder", dict(mode="max-autotune", fullgraph=True, dynamic=False)),("sam_mask_decoder", dict(mode="max-autotune", fullgraph=True, dynamic=False)),]self._original_forwards: Dict[str, Any] = {}compiled = []394 unmodified lines395396397398399400401402403404405394 unmodified lines"""vp = self._video_predictorcomponents = [("image_encoder", dict(mode="max-autotune", dynamic=False)),("memory_encoder", dict(mode="max-autotune", dynamic=False)),("memory_attention", dict(mode="max-autotune", dynamic=True)),("sam_prompt_encoder", dict(mode="max-autotune", dynamic=False)),("sam_mask_decoder", dict(mode="max-autotune", dynamic=False)),]self._original_forwards: Dict[str, Any] = {}compiled = []
models/segmenters/grounded_sam2.py+5-5