Commit Graph

2 Commits

Author SHA1 Message Date
Ethanfel eca49caee9 fix: sam_masks — correct SAM2 API and mask logit threshold
Use SAM2VideoPredictor.from_pretrained() instead of the checkpoint-based
build_sam2_video_predictor() which doesn't accept HuggingFace model IDs.
Threshold out_mask_logits at 0.0 and squeeze shape before converting to
binary PNG.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 15:45:53 +02:00
Ethanfel 44bcb285ac feat: sam_masks.py script using SAM2 video predictor 2026-04-06 15:35:29 +02:00