Summary:
## Context
When cv2.VideoCapture opens a video but cannot decode any frames (e.g., due to an unsupported codec), the frames list is empty and np.stack crashes with "need at least one array to stack" — an unhelpful error message that obscures the real problem.
## This Diff
- Add explicit check for empty frames list after cap.release() and before np.stack
- Raise RuntimeError with descriptive message about possible causes (corrupted file, empty video, or unsupported codec)
Differential Revision: D94142839
fbshipit-source-id: 89a973d067d83439039734712d18727b06d0706d
Summary:
When running with compile=True, we were getting the following error: P2186079344
Swapping to not use cudagraphs for a quik fix. Will follow up with swapping the Position embedding impl to not cache.
Reviewed By: raedle
Differential Revision: D93508585
fbshipit-source-id: 0eaa29fcf826611b6a652811a6f2472399014b84
Summary:
there are several imports within the `sam3.model` package that reference other packages within `sam3` other than `sam3` and `sam3.model` (for example [here](https://github.com/facebookresearch/sam3/blob/main/sam3/model/sam3_tracker_base.py#L15)). This fixes the package structure so that you can `pip install` the package and `import sam3`
Pull Request resolved: https://github.com/facebookresearch/sam3/pull/327
Reviewed By: haithamkhedr
Differential Revision: D88950127
Pulled By: lematt1991
fbshipit-source-id: 3554512d304ccdf679a9af8606bbfe1f7f2a1cfb