PIXEL ATLAS

Loading collection...

CPU

This viewer searches Pixel Art Atlas, a dataset of over 1.4 million 16 × 16 pixel art images. Search uses a custom TinyCLIP-39M-PixelArt model trained and running with Sentence Transformers, producing shared 256-dimensional embeddings for text and images. USearch retrieves candidates from an int8 approximate nearest-neighbor index, then their stored fp16 embeddings are rescored by cosine similarity against the fp32 query embedding.

How retrieval and timings work

The model learns to place matching text and images close together in an embedding space, so finding an image becomes a matter of finding nearby vectors. Because the images are embedded in advance, each search only needs the model's text encoder, running on CPU with fp32 weights. Embed measures this step, including tokenization and normalization. Matryoshka training makes the first 256 dimensions useful on their own, keeping the index compact.

To find nearby vectors quickly, Retrieve follows connections between similar images in USearch's int8 HNSW index, selecting candidates without comparing every image. Quantization and approximate search trade some precision for speed, so Rescore refines the candidates' order using their saved fp16 embeddings. These are upcast to fp32 and compared with the fp32 query by cosine similarity, without running another model. The resulting scores express similarity, not confidence.

With the ranking ready, Images reads the first 30 images and captions and packs the pixels into a single PNG for the browser. See more reuses that ranking and prepares the next 30, so it skips embedding, retrieval, and rescoring. Timings for these additional pages appear below the grid.

Search starts with no added typing delay. While a response is pending, the browser keeps only your latest edit to send next. Requests from other visitors can still cause a server Queue: each process handles one request at a time, with seven waiting slots. Server time includes that wait and processing. Round trip starts when the request is sent and also includes network transfer and JSON parsing. Browser total starts at your latest edit or click, including any wait for the previous request, image decoding, and the next display frame.

TRY A LITTLE

Explore the collection

Loading images...

Download original PNG ↓