Skip to Main Content

SpikeTrack runs all of Meta's SAM 3.1, from a text prompt to tracked masks, as one 12 MB Rust program on a Mac. We adapted it to find and track sperm cells in clinical microscope video. Why: sperm motility, a core part of male-fertility testing, is still judged largely by eye. Following dozens of small, fast, look-alike cells through video is hard, and fertility labs often cannot upload patient video to a cloud service. SAM 3.1's official code needs Python, PyTorch and a CUDA GPU. The existing Mac (Core ML) port runs only the tracker: it cannot take a text prompt, detect objects, or start new tracks. What we built: - All of SAM 3.1 in Rust: the CLIP text encoder, the DETR detector, the PE ViT backbone, the Object Multiplex tracker, and the detect, associate and track loop that starts and keeps tracks. It runs on our own Metal GPU engine (Ojas and tessl). Its heaviest parts (image trunk, necks, memory attention, memory encoder) run as half-precision Core ML programs exported from the checkpoint. It links only macOS system libraries and needs no Python at run time. - Checked against Meta's official code: every module matches (worst cosine 1.0000000, on CPU and on Metal). Image mode keeps the same detections on 20/20 frames. On 3 DAVIS clips, J&F equals the official code's. The full text-prompted tracking loop keeps the same tracked IDs on 32/32 frames. - Adapted to sperm: zero-shot, SAM 3.1 does not ground "sperm" (HOTA 0.000). We trained a LoRA adapter on the Mac (1.13M parameters, about 0.13% of the model) and applied a 768-scalar weight edit. Results on five held-out VISEM-Tracking videos: - Frame 0 detection: 95 of 112 heads, 83.7% F1. - Tracking over 1,500 frames: HOTA from 0.155 to 0.570. - Everyday negative prompts: 0 false positives out of 600. - Speed: about 1.0 s per frame on a dense video (M5 Pro), down from 2.9 s. It is not real time yet. Every number links to a saved run log in the repository. SpikeTrack is a research tool, not a medical device.

Team

bharath_vbcr

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview