Learning to see from a baby's point of view

egolearn is an open-source library for training models on first-person video and testing what they learned.

# install from a cloned repository
$ uv sync --extra train

# evaluate a released KrishnaCam model on shape-bias stimuli, CPU only
$ uv run egl data prepare shape-bias
$ uv run egl eval shape_bias_eval \
    checkpoint=hf://models/egolearn/babycl-resnext50-krishnacam@main/model.safetensors \
    benchmarks.0.manifest=data/shape-bias/stimulus_manifest.json

# train BabyCL on SAYCam, given dataset access and a GPU
$ uv run egl train projects/babycl/configs/saycam_default.yaml \
    stream.root_dir=/path/to/saycam_5fps \
    stream.transcript_json=/path/to/expand_correct_seg.json \
    tokenizer.vocab_json=/path/to/vocab.json 'probes=[]'

streaming video learning

Children learn from one long stream of experience. They see a moment once, in order, and keep learning as it unfolds. Most vision models instead train on shuffled photos, seen many times over. egolearn trains models on video the way a child sees it.

training objectives
SimCLRCLIPV-JEPAMAEVideoMAE

training and evaluation datasets

First-person recordings for streaming learning and video understanding benchmarks.

continual learning

Methods that keep learning from new video without forgetting what came before.

roll the balllook, a duck!yummy bananaevents

BabyCL

Learns words and images together from a child's video, in a single pass.

method page →
storyboardmemoryreplaystream

Memory Storyboard

Groups recent frames into events and learns from them with replay.

method page →

evaluation probes

Tests from developmental psychology and computer vision, with fixed data and protocols, so results compare across papers.

ball

Word learning Labeled-S, BabyView

Find the picture that matches a word.

basket full basket empty

Two-word phrases VTWT

Pick the two-word phrase that fits the picture.

open book close book

Baby Winoground compositional phrases

Match two pictures to two phrases that differ in one detail.

shapetexture

Shape bias novel objects

Does the model group new objects by shape or by texture?

samedifferent

Spatial relations 2D and 3D scenes

Recognize the same relation in a new place.

ball

Linear decoding Labeled-S

How much category information the features hold.

?!

Intuitive physics IntPhys 2, GRASP

Spot the video that breaks physics.

egolearn benchmark

Loading published results…

Mean ± sd over training seeds.