Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
row_index
int64
0
14.8k
sample_key
int64
0
14.8k
valid_fraction
float64
0.77
1
scene_max_compressed
int64
1
4
compressed_ge2_fraction
float64
0
1
compressed_ge3_fraction
float64
0
0.98
compressed_ge4_fraction
float64
0
0.91
bucket
int64
1
4
0
0
1
4
0.230924
0.144096
0.075703
4
1
1
1
4
0.034889
0.025054
0.000082
4
2
2
1
4
0.408678
0.211322
0.064341
4
3
3
1
4
0.634338
0.250998
0.140256
4
4
4
1
4
0.47531
0.240996
0.102334
4
5
5
1
4
0.027814
0.024531
0.000001
4
6
6
1
4
0.59002
0.30002
0.193512
4
7
7
1
4
0.680391
0.364491
0.187342
4
8
8
1
4
0.093121
0.005779
0.000001
4
9
9
1
4
0.394769
0.138844
0.040814
4
10
10
1
4
0.267016
0.124997
0.032153
4
11
11
1
4
0.238101
0.027971
0.008621
4
12
12
1
4
0.165726
0.055206
0.006697
4
13
13
1
4
0.181434
0.119191
0.012415
4
14
14
1
4
0.297272
0.119516
0.002817
4
15
15
1
1
0
0
0
1
16
16
1
1
0
0
0
1
17
17
1
4
0.093813
0.044026
0.007041
4
18
18
1
1
0
0
0
1
19
19
1
4
0.166319
0.074564
0.011943
4
20
20
1
4
0.439278
0.148114
0.049593
4
21
21
1
4
0.112689
0.037533
0.012347
4
22
22
1
4
0.030968
0.019744
0.007549
4
23
23
1
4
0.20599
0.013524
0.011758
4
24
24
1
4
0.191629
0.072066
0.010497
4
25
25
1
4
0.241875
0.081512
0.01427
4
26
26
1
4
0.619233
0.158933
0.005567
4
27
27
1
2
0.213673
0
0
2
28
28
1
1
0
0
0
1
29
29
0.999567
4
0.336876
0.105337
0.061455
4
30
30
1
4
0.218722
0.153205
0.056598
4
31
31
1
4
0.217855
0.112451
0.025575
4
32
32
1
4
0.305442
0.153702
0.06775
4
33
33
0.995165
4
0.322614
0.10766
0.021796
4
34
34
1
4
0.423961
0.245362
0.105098
4
35
35
1
4
0.408839
0.220952
0.104265
4
36
36
1
4
0.068441
0.045907
0.027358
4
37
37
1
4
0.362805
0.242229
0.110406
4
38
38
1
4
0.064747
0.014179
0.00324
4
39
39
1
2
0.00166
0
0
2
40
40
1
4
0.180471
0.076476
0.003812
4
41
41
1
4
0.03127
0.017681
0.000056
4
42
42
1
4
0.014373
0.012518
0.000509
4
43
43
1
1
0
0
0
1
44
44
1
4
0.010052
0.010033
0.000003
4
45
45
1
2
0.010855
0
0
2
46
46
1
4
0.01385
0.011646
0.000271
4
47
47
1
4
0.012859
0.011541
0.000126
4
48
48
1
4
0.005855
0.00533
0.000266
4
49
49
1
4
0.052587
0.009869
0.000113
4
50
50
1
4
0.063531
0.028752
0.016299
4
51
51
0.999562
4
0.204832
0.093365
0.039324
4
52
52
0.997031
4
0.304661
0.171424
0.094937
4
53
53
1
4
0.464174
0.104405
0.043813
4
54
54
1
4
0.378205
0.185785
0.122086
4
55
55
1
4
0.152121
0.053669
0.001832
4
56
56
1
4
0.283825
0.059157
0.030143
4
57
57
1
4
0.829664
0.643722
0.477323
4
58
58
1
1
0
0
0
1
59
59
0.999902
4
0.142601
0.102599
0.012752
4
60
60
0.98495
4
0.287688
0.126788
0.033596
4
61
61
1
4
0.336063
0.164909
0.070674
4
62
62
1
4
0.408636
0.209965
0.062558
4
63
63
1
4
0.300829
0.143763
0.061208
4
64
64
1
4
0.51533
0.163921
0.051974
4
65
65
1
4
0.477844
0.237188
0.080958
4
66
66
1
4
0.384154
0.169107
0.046597
4
67
67
0.996789
1
0
0
0
1
68
68
1
4
0.278915
0.001381
0.000008
4
69
69
1
4
0.068493
0.035902
0.017237
4
70
70
1
4
0.136468
0.008061
0.000532
4
71
71
1
4
0.130106
0.1079
0.041369
4
72
72
1
4
0.148553
0.061863
0.000533
4
73
73
1
4
0.124601
0.114832
0.001095
4
74
74
1
4
0.062052
0.057612
0.000206
4
75
75
1
4
0.239443
0.191737
0.06245
4
76
76
1
1
0
0
0
1
77
77
1
4
0.125181
0.085711
0.024298
4
78
78
1
1
0
0
0
1
79
79
1
4
0.07222
0.012944
0.000441
4
80
80
1
4
0.011207
0.004225
0.000151
4
81
81
1
3
0.006043
0.000851
0
3
82
82
1
1
0
0
0
1
83
83
1
4
0.020781
0.018319
0.00314
4
84
84
1
3
0.034835
0.00028
0
3
85
85
1
4
0.001584
0.001095
0.000536
4
86
86
1
3
0.028686
0.00031
0
3
87
87
1
4
0.003152
0.000653
0.000072
4
88
88
1
4
0.038143
0.03135
0.000628
4
89
89
0.993293
4
0.223278
0.126224
0.041968
4
90
90
1
3
0.206097
0.00796
0
3
91
91
1
4
0.307929
0.198547
0.078994
4
92
92
0.998969
3
0.085811
0.002788
0
3
93
93
1
2
0.000578
0
0
2
94
94
0.998689
2
0.000744
0
0
2
95
95
1
3
0.125486
0.00015
0
3
96
96
1
1
0
0
0
1
97
97
0.992738
4
0.043471
0.03547
0.00049
4
98
98
1
4
0.020003
0.010168
0.001386
4
99
99
1
4
0.127852
0.095408
0.029444
4
End of preview. Expand in Data Studio

layerdepth-stratified

Stratified train metadata for princeton-vl/LayeredDepth-Syn.

This dataset does not duplicate LayeredDepth images (~1.9 TB). It publishes:

  1. Per-scene bucket assignments (compressed layer count 1–4)
  2. A round-robin batch mix manifest for balanced multilayer training
  3. Preprocessing code aligned with the original LayeredDepth / SeeGroup pipeline

Use it to train models that avoid fake-layer collapse by balancing layer-count buckets each epoch.

Base dataset

Item Value
Images & depth PNGs princeton-vl/LayeredDepth-Syn
Train scenes 14,800
Layers per scene 4 depth maps (IDs 1, 3, 5, 7)
This repo Metadata + sampling code only

Files

Path Description
metadata/sample_buckets.parquet One row per train scene: row_index, bucket, layer stats
metadata/bucket_manifest.json Bucket → row_index lists + default batch_mix
metadata/summary.json Build provenance and histogram
layerdepth_stratified/preprocess.py LayeredDepth depth collapse + RGB/depth decoding
layerdepth_stratified/stratified_sampling.py Epoch order + DDP rank split
layerdepth_stratified/dataset_loader.py High-level iterator API

Quick start

from datasets import load_dataset
from layerdepth_stratified import iter_from_hub_metadata

# 1) Load stratified metadata from this repo
meta = load_dataset("YOUR_USERNAME/layerdepth-stratified", split="train")
print(meta[0])  # row_index, bucket, scene_max_compressed, ...

# 2) Iterate preprocessed samples in stratified epoch order
for sample in iter_from_hub_metadata(
    "YOUR_USERNAME/layerdepth-stratified",
    cache_dir="/path/to/hf/cache",
    seed=42,
    epoch=1,
):
    image = sample["image"]          # float32 HWC, [0, 1]
    depth = sample["depth"]          # float32 HWD, meters, LayeredDepth convention
    valid_mask = sample["valid_mask"]
    break

Preprocessing (matches original LayeredDepth)

  1. Decode RGB PNG → float32 [0, 1]
  2. Decode depth PNG → meters (/1000, clip invalid/>80m)
  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):

{"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

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

Downloads last month
55