Summary:
During development of an end2end test I encountered this bug.
SAM3's tracker enters a long-lived bfloat16 autocast context during model construction. Exit and clear that context when the owning video predictor shuts down so subsequent work in the same thread is not silently autocast.
___
Differential Revision: D115565123
fbshipit-source-id: 87dd514e974345d41b22a89569dd0ea3200bc53a
Summary: Fix SAM3 io_utils.py to handle extensionless video files from OIL (Object Image Library). Previously, the code would immediately raise NotImplementedError when encountering files without recognized video extensions. This change attempts to load such files as videos using the video loader, only raising an exception if the actual decoding fails. This enables SAM3 to process OIL-stored video paths that don't include file extensions.
Differential Revision: D99228861
fbshipit-source-id: c93d089ad4b7eac9e0eb629d7a71b021604db410