1 Commits
Author SHA1 Message Date
Yunseok Jang 86ed770940 Make decord import lazy and add image-only inference build target
Summary:
Move the top-level `from decord import cpu, VideoReader` in sam3_image_dataset.py to a lazy import inside the .mp4 video loading block. This avoids import errors for consumers that only need image inference and don't have decord installed.

Also add a new `sam3_inference_image_only` BUCK target that excludes decord from pypi_deps for downstream projects that only need image inference.

Reviewed By: haithamkhedr

Differential Revision: D96809398

fbshipit-source-id: 67c5f0be965d8420b244ff4c45d849314352d3cc
2026-03-16 15:38:39 -07:00