Getting Started with Pixeltable: Versioning AI Datasets in Minutes
A hands-on tutorial: install Pixeltable, create versioned multimodal tables, run vision model inference in the dataflow, and branch your data like code.
Pixeltable promises a Python-native dataframe API over versioned multimodal data. In this tutorial, you will build a small image dataset, run a vision model over it, and see how incremental computation and data versioning actually work β with only a few lines of code.
π Want to deploy Pixeltable yourself?
Docker configs, system requirements, and installation guides β all on one page.
View Pixeltable Tool Page βStep 1: Install and Connect
Install the Python client and connect to a Pixeltable instance. The client talks to the backend over a simple API, so your data and compute stay on the server:
pip install pixeltable
import pixeltable as pxt
pxt.connect('http://localhost:8080')
Step 2: Create a Versioned Table
Tables hold mixed column types β URLs, text, and structured values β and every mutation creates a new version:
t = pxt.create_table('image_catalog', {
'image': pxt.Image,
'caption': pxt.String,
})
t.insert(image='https://example.com/photo.jpg',
caption='A city skyline at dusk')
Step 3: Run Inference in the Dataflow
Attach a vision model and add a computed column. Pixeltable tracks dependencies and only recomputes rows whose inputs changed:
t.add_computed_column(
embedding=t.image.embed(embedding_model))
t.add_computed_column(
label=t.image.classify(classifier))
Step 4: Replay and Branch
| Operation | Pixeltable Command |
|---|---|
| See version history | t.version_history() |
| Restore an old snapshot | t.restore(version_id) |
| Fork a branch for experiments | t.branch('experiment') |
π‘ Pro tip: Because computation is incremental, adding 1,000 new images to a 100K-image dataset only re-embeds the new ones β your pipeline stays fast as data grows.
Wrap-Up
In a few minutes you had a versioned, queryable multimodal dataset with model inference built in. That combination of dataframe ergonomics, automatic versioning, and incremental compute makes Pixeltable a compelling backend for serious AI data work.
π Ready to run Pixeltable?
Get the Docker setup, requirements, and deployment guide on the tool page.
View Pixeltable Tool Page β