video stringlengths 10 10 |
|---|
video_0139 |
video_0140 |
video_0141 |
video_0142 |
video_0143 |
video_0144 |
video_0145 |
video_0146 |
video_0147 |
video_0148 |
video_0149 |
video_0150 |
video_0151 |
video_0152 |
video_0154 |
video_0155 |
video_0156 |
video_0157 |
video_0158 |
video_0159 |
video_0160 |
video_0162 |
video_0163 |
video_0164 |
video_0165 |
video_0166 |
video_0167 |
video_0168 |
video_0169 |
video_0188 |
video_0189 |
video_0191 |
video_0192 |
video_0193 |
video_0195 |
video_0196 |
video_0197 |
video_0199 |
video_0200 |
video_0201 |
video_0088 |
video_0204 |
video_0205 |
video_0206 |
video_0207 |
video_0209 |
video_0210 |
video_0211 |
video_0213 |
video_0215 |
video_0216 |
video_0219 |
video_0220 |
video_0221 |
video_0222 |
video_0000 |
video_0001 |
video_0002 |
video_0003 |
video_0004 |
video_0005 |
video_0006 |
video_0007 |
video_0008 |
video_0009 |
video_0010 |
video_0011 |
video_0012 |
video_0013 |
video_0014 |
video_0015 |
video_0016 |
video_0017 |
video_0018 |
video_0019 |
video_0020 |
video_0021 |
video_0022 |
video_0023 |
video_0024 |
video_0025 |
video_0026 |
video_0027 |
video_0028 |
video_0029 |
video_0030 |
video_0031 |
video_0032 |
video_0033 |
video_0034 |
video_0035 |
video_0036 |
video_0037 |
video_0038 |
video_0039 |
video_0040 |
video_0041 |
video_0042 |
video_0043 |
video_0044 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SalTempto — Saliency Eye-Tracking Dataset
A video eye-tracking dataset of 224 naturalistic video stimuli with gaze recordings from multiple subjects, designed for training and evaluating visual saliency models.
Dataset Overview
| Videos | 224 (1920×1080, ~30 fps) |
| Train / Val / Test | 204 / 10 / 10 |
| Subjects per video | Train: 1–3 (mean ≈ 2.5) · Val: 15–16 · Test: held out |
Gaze recordings for the test split are intentionally held out as a hidden benchmark — only the test video stimuli are public.
Repository Structure
video_saliency/
├── dataloader.py # PyTorch dataset and dataloader
├── data/
│ ├── train_videos.csv # List of training video IDs
│ ├── val_videos.csv # List of validation video IDs
│ ├── test_videos.csv # List of test video IDs
│ ├── videos/ # MP4 stimulus videos (video_0000.mp4 … video_0223.mp4)
│ └── eyetracking/ # Per-video gaze recordings
│ └── video_XXXX/
│ └── video_XXXX_subject_Y.csv
Eyetracking Data Format
Each video_XXXX_subject_Y.csv file contains raw gaze samples at ~500 Hz with the following columns:
| Column | Description |
|---|---|
time |
Timestamp in milliseconds |
left_x, left_y |
Left eye gaze position in pixels (1920×1080) |
left_p |
Left eye pupil size |
right_x, right_y |
Right eye gaze position in pixels |
right_p |
Right eye pupil size |
seconds |
Tracker timestamp in seconds (= time / 1000) |
timestamp_start |
Seconds elapsed since video onset (first row of each CSV is 0.0) |
frames |
Corresponding video frame index (fractional) |
Missing gaze samples (e.g. blinks, lost tracking) are encoded as empty cells in the CSV (≈3.6% of left-eye and ≈4.7% of right-eye coordinates across the dataset). Out-of-screen fixations are not separately marked but can be identified by coordinates outside the valid range (x ≤ 0 or x ≥ 1920, y ≤ 0 or y ≥ 1080). The dataloader filters both cases automatically.
Installation
pip install torch decord pandas numpy
Or with uv:
uv add torch decord pandas numpy
Usage
from dataloader import EyeTrackingDataset
# Instantiate — paths are auto-derived from data_dir
dataset = EyeTrackingDataset(
data_dir="data",
split="train", # "train", "val", or "test"
use_gpu=False,
)
# Load an entire video (returns all frames)
video, fixations = dataset[0]
# video: Tensor (num_frames, 3, H, W), float32 in [0, 1]
# fixations: Tensor (num_frames, max_fixations, 2), padded with -1
# max_fixations = max gaze samples in any frame (≈500 Hz / 30 fps × n_subjects)
# Load a frame range
video, fixations = dataset[(0, 10, 40)] # video 0, frames 10–40
# Negative indexing: last 50 frames
video, fixations = dataset[(0, -50, None)]
DataLoader with batching
from torch.utils.data import DataLoader
from dataloader import EyeTrackingDataset, EyeTrackingCollator
class ClipDataset(EyeTrackingDataset):
def __getitem__(self, idx):
return super().__getitem__((idx, 0, 30)) # 30-frame clips
dataset = ClipDataset(data_dir="data", split="train", use_gpu=False)
loader = DataLoader(dataset, batch_size=4, collate_fn=EyeTrackingCollator())
for videos, fixations, lengths in loader:
# videos: (B, max_frames, 3, H, W)
# fixations: (B, max_frames, max_fixations, 2)
# lengths: (B,) actual frame counts per clip
break
Parameters
| Parameter | Default | Description |
|---|---|---|
data_dir |
required | Path to the data/ directory |
split |
"train" |
One of "train", "val", "test" |
use_gpu |
True |
GPU-accelerated video decoding via Decord |
gpu_id |
0 |
GPU device index |
subject_mode |
"combined" |
"combined" for all subjects, or "subject_N" for a single subject |
cumulative_fixations |
False |
If True, return all fixations from frame 0 up to end_frame |
video_dir |
data_dir/videos |
Override video directory |
csv_base_dir |
data_dir/eyetracking |
Override eyetracking directory |
Croissant metadata
The dataset ships with a Croissant metadata file at croissant.json. To iterate over per-sample gaze records via mlcroissant:
from mlcroissant import Dataset
ds = Dataset(jsonld="https://huggingface.co/datasets/anonymous-neurips-submission/video_saliency/resolve/main/croissant.json")
for record in ds.records("eyetracking-data"):
# keys: video_id, subject_id, time, left_x, left_y, left_p, right_x, right_y, right_p, seconds, timestamp_start, frames
...
Other record sets exposed by the metadata: train-split, val-split, test-split (each yields the list of video_ids for that split).
- Downloads last month
- 31