Debugging chunk boundaries with SAM2

This commit is contained in:
Jonathan Thomas
2026-02-21 16:12:50 -06:00
parent fc36ce04cc
commit a1bc41b04a

View File

@@ -59,8 +59,8 @@ GROUNDING_DINO_MODEL_IDS = (
)
GROUNDING_DINO_CACHE = {}
def _sam2_debug_enabled():
v = str(os.environ.get("OPENSHOT_SAM2_DEBUG", "")).strip().lower()
return v in ("1", "true", "yes", "on", "debug")
# Temporary: always-on debug while we diagnose chunk/carry drift.
return True
def _sam2_debug(*parts):