--- license: cc-by-4.0 task_categories: - depth-estimation - image-to-3d tags: - 3d-reconstruction - rgb-d - camera-pose --- # BLS-20K 15 scenes (5 indoor, 5 outdoor, 5 object), ~20K+ frames each, captured with a ZED X stereo camera (left camera only). Every frame has an RGB image, a metric depth map, a validity mask and a 6-DoF pose, all in the same pinhole camera space. ## Layout (per scene) ``` / rgb/rgb_XXXXXX.jpg 8-bit RGB JPEG depth/depth_XXXXXX.png 16-bit PNG, millimetres (depth_scale = 1000), 0 = invalid mask/mask_XXXXXX.png 8-bit PNG, 1 = valid depth, 0 = invalid pose/trajectory_tum.txt TUM format: timestamp_s tx ty tz qx qy qz qw (T_world_cam, metres) timestamps.csv frame_idx, ts_ns (frame -> capture time) intrinsics.json pinhole fx fy cx cy (pixels), no distortion meta.json scene type, frame count/range, formats, intrinsics ``` - Indoor/outdoor scenes: 1920x1200 rectified images. Object scenes: 640x640 centre crop of the rectified image (intrinsics already adjusted). - Frame indices are not contiguous. One pose row per frame; match frames to poses by timestamp (`ts_ns / 1e9` equals the pose timestamp within 5 ms). - Depth in metres = `png_value / 1000`. Pixels with mask 0 have no depth. - Poses are camera-to-world (`T_world_cam`), OpenCV camera convention (x right, y down, z forward). ## Scenes | type | scene | frames | |---|---|---| | indoor | indoor_auditorium | 25235 | | indoor | indoor_corridor | 24480 | | indoor | indoor_classroom | 24157 | | indoor | indoor_meeting | 23950 | | indoor | indoor_lounge | 24287 | | object | object_helmet | 24691 | | object | object_plush | 24369 | | object | object_keyboard | 24274 | | object | object_screwdriver | 23534 | | object | object_fishingrod | 23870 | | outdoor | outdoor_tractor | 24527 | | outdoor | outdoor_building | 24970 | | outdoor | outdoor_arcade | 24732 | | outdoor | outdoor_picnic | 24483 | | outdoor | outdoor_playground | 23795 | Total: 15 scenes, 365,354 frames. ## Download & Extract Each scene is packaged as an uncompressed tar archive under `scenes/.tar` (~2.5–36 GB per scene, ~295 GB total). You can download either a single scene or the full dataset from [VAISR/BLS-20K](https://huggingface.co/datasets/VAISR/BLS-20K) using the Hugging Face CLI (`pip install -U "huggingface_hub[cli]"`): ```bash # Download a single scene (e.g., object_screwdriver, ~2.5 GB) + checksums hf download VAISR/BLS-20K \ --repo-type dataset \ --include "scenes/object_screwdriver.tar" "sha256sums.txt" \ --local-dir BLS-20K # Or download the entire dataset (all 15 scenes + evaluation scripts) hf download VAISR/BLS-20K \ --repo-type dataset \ --local-dir BLS-20K ``` Verify checksums (optional) and extract the archives into the dataset root: ```bash cd BLS-20K # Optional: verify integrity of downloaded tar files sha256sum -c --ignore-missing sha256sums.txt # Extract a single scene tar -xf scenes/object_screwdriver.tar # Or extract all downloaded scenes for f in scenes/*.tar; do tar -xf "$f"; done ``` Each archive extracts directly into `/` matching the layout above (so you can set `export BLS20K_ROOT=$PWD`). ## Evaluation Reference (`bls20k_eval_release/`) `bls20k_eval_release/` provides reference evaluation scripts and a streaming integration template across three tasks (Multi-View 3D Reconstruction, Video Depth Estimation, and Camera Pose Estimation). Because these scripts evaluate model predictions (or require plugging in your own model's inference logic), they serve as a reference toolkit rather than a standalone one-click benchmark: ``` bls20k_eval_release/ common/ dataset loader (BLS20KScene) & streaming utilities mv_recon/evaluate.py Multi-View 3D Reconstruction (.ply -> Accuracy / Completion / Chamfer / NC) video_depth/evaluate.py Video Depth Estimation (.npy/.png -> AbsRel / RMSE / delta1-3) pose_evaluation/evaluate.py Camera Pose Estimation (TUM .txt -> ATE / RPE via evo Sim3) rescale_eval.py batch re-scale & re-evaluate existing mv_recon results run_all.sh example batch evaluation script for pre-computed predictions examples/custom_model_template.py template for plugging a custom model into streaming evaluation ``` - **Offline file evaluation**: Pass your model's exported predictions (`.ply` point cloud, `.npy`/`.png` depth maps, or TUM `.txt` trajectory) to the corresponding `evaluate.py` script. - **In-memory streaming evaluation**: For 20K+ frame sequences, adapt `examples/custom_model_template.py` (implement `CustomModelAdapter.predict_frame()`) to accumulate point clouds and evaluate depth/pose on-the-fly. See [bls20k_eval_release/README.md](bls20k_eval_release/README.md) for usage examples, CLI options, and alignment protocols.