Introduce torch compile option
Summary: TSIA! Reviewed By: arpitkalla Differential Revision: D93826755 fbshipit-source-id: 0b7406b738590c4ee27099b1b1ce24b9c88680c5
This commit is contained in:
committed by
meta-codesync[bot]
parent
f0399e7fce
commit
2d08d73120
@@ -35,6 +35,7 @@ class Sam3VideoPredictor:
|
|||||||
async_loading_frames=False,
|
async_loading_frames=False,
|
||||||
video_loader_type="cv2",
|
video_loader_type="cv2",
|
||||||
apply_temporal_disambiguation: bool = True,
|
apply_temporal_disambiguation: bool = True,
|
||||||
|
compile: bool = False,
|
||||||
):
|
):
|
||||||
self.async_loading_frames = async_loading_frames
|
self.async_loading_frames = async_loading_frames
|
||||||
self.video_loader_type = video_loader_type
|
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,
|
geo_encoder_use_img_cross_attn=geo_encoder_use_img_cross_attn,
|
||||||
strict_state_dict_loading=strict_state_dict_loading,
|
strict_state_dict_loading=strict_state_dict_loading,
|
||||||
apply_temporal_disambiguation=apply_temporal_disambiguation,
|
apply_temporal_disambiguation=apply_temporal_disambiguation,
|
||||||
|
compile=compile,
|
||||||
)
|
)
|
||||||
.cuda()
|
.cuda()
|
||||||
.eval()
|
.eval()
|
||||||
|
|||||||
Reference in New Issue
Block a user