--- license: apache-2.0 task_categories: - image-to-3d language: - en tags: - depth-estimation - layered-depth - stratified-sampling - computer-vision size_categories: - 10K80m`) 3. **Layer collapse**: invalid shallow pixels inherit deeper valid depth (standard LayeredDepth convention) 4. Optional layer subset via `selected_layer_ids` See `layerdepth_stratified/preprocess.py` for the reference implementation. ## Stratified sampling Each train scene is assigned to bucket **1–4** by **compressed layer count** (ray-sort + gap events). Default per-batch mix (`batch_mix`): ```json {"1": 0.25, "2": 0.25, "3": 0.25, "4": 0.25} ``` Each epoch: 1. Shuffle within each bucket 2. Round-robin across buckets using `batch_mix` 3. Map indices → rows in `princeton-vl/LayeredDepth-Syn` train split ## Rebuild manifest ```bash python -m layerdepth_stratified.build_manifest \ --cache-dir /path/to/hf/datasets \ --output-dir artifacts/layereddepth_stratified ``` ## Citation If you use this stratified metadata, please cite the original LayeredDepth paper/dataset and note that bucket assignments were produced with the SeeGroup stratified sampling pipeline. ## See also - [LayeredDepth-Syn](https://huggingface.co/datasets/princeton-vl/LayeredDepth-Syn) - SeeGroup `docs/LAYEREDDEPTH_STRATIFIED_SAMPLING.md`