neural video retrieval

Search unstructured video by pose, clothing, and motion without metadata

Searching an unstructured video library by pose, clothing, or motion, without relying on uploader metadata, is the kind of practical AI challenge that too few people tackle head-on.

3 min readMachine Learning

Video search has been broken for years, not because the technology doesn't exist, but because the industry settled for metadata as a crutch. The open-source project from developer qn06142 proves that searching unstructured video by pose, clothing, and motion is not only possible but practical on consumer hardware. That matters for anyone who has ever felt trapped by the limitations of platform search or the rigid taxonomies of existing tools. It's a direct challenge to the assumption that you need enterprise infrastructure to do meaningful visual retrieval, and it connects to broader trends we've seen in open-source profiling and developer tooling. For instance, Open-source profiling scales across the internet with Pinterest and Intel showed how collaborative open-source efforts can extend performance tools to production environments, while Explore Topcoat, the Tokio team's practical Rust framework for data-driven web apps demonstrated that accessible frameworks can lower the barrier for building complex systems. This video retrieval engine follows the same logic: take a hard problem, solve it with clever engineering, and give the result away.

What makes this project remarkable is not the seven-day sprint, impressive as that is, but the specific architectural decisions that make it work on an 8 GB laptop GPU. Freezing the EVA-02 vision backbone, using multi-instance routing instead of averaging frames, and deploying a soft negative floor for contrastive learning all point to a developer who understands where existing models fall short. The benchmark numbers speak for themselves: Recall@1 jumped from 12.4% to 20.67% on held-out splits, and cross-domain retrieval improved from 18.09% zero-shot to 55.28%. Those are not incremental gains. They represent a fundamental rethinking of how to index video content when metadata is unreliable.

The practical consequence for users is immediate. If you have ever tried to find a specific scene in a long video based on what someone is wearing or how they are positioned, you know the frustration of scrolling through thumbnails or guessing the right search terms. This engine bypasses that entirely. It searches by visual features alone, ignoring uploader tags, and it does so in milliseconds. The two-stage pipeline, index scan in 8.9 ms followed by localized reranking, means that even large collections are navigable in real time. The JPEG decode optimization alone, dropping from 32 ms to 2.1 ms per image by switching to libjpeg-turbo, is a lesson in how many bottlenecks hide in plain sight.

The open question is how this approach will scale beyond its current domain. The project was trained on 147,412 curated videos, with a long-tail balancing scheme that handles tag counts skewing 9,000x from head terms to rare ones. That is a robust foundation, but the real test will come as the dataset scales past 288,000 clips and encounters genuinely diverse content. The developer acknowledges noisy edge tags and unfinished mosaics, which suggests there is still work to do. Still, the trajectory is clear: video search is moving from metadata-dependent to visually-native, and this project is a working blueprint. Watch how the community extends it.

From Machine Learning

TL;DR: After a manic 7-day sprint, I open-sourced a local video retrieval engine built to search massive unstructured video portals by visual poses, clothing details, camera angles, and motion cadence—ignoring uploader metadata at search time and running in minimal VRAM.

Hardware Bottlenecks and Inference Speed

Read the original at Machine Learning