From 2d08d7312050b6f65b28f1b458cd91f8cd57814a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20R=C3=A4dle?= Date: Fri, 20 Feb 2026 14:51:26 -0800 Subject: [PATCH] Introduce torch compile option Summary: TSIA! Reviewed By: arpitkalla Differential Revision: D93826755 fbshipit-source-id: 0b7406b738590c4ee27099b1b1ce24b9c88680c5 --- sam3/model/sam3_video_predictor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sam3/model/sam3_video_predictor.py b/sam3/model/sam3_video_predictor.py index 13b1448..ce3b801 100644 --- a/sam3/model/sam3_video_predictor.py +++ b/sam3/model/sam3_video_predictor.py @@ -35,6 +35,7 @@ class Sam3VideoPredictor: async_loading_frames=False, video_loader_type="cv2", apply_temporal_disambiguation: bool = True, + compile: bool = False, ): self.async_loading_frames = async_loading_frames self.video_loader_type = video_loader_type @@ -48,6 +49,7 @@ class Sam3VideoPredictor: geo_encoder_use_img_cross_attn=geo_encoder_use_img_cross_attn, strict_state_dict_loading=strict_state_dict_loading, apply_temporal_disambiguation=apply_temporal_disambiguation, + compile=compile, ) .cuda() .eval()