File size: 3,469 Bytes
d91cb5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
da262cb
d91cb5b
da262cb
 
db324de
d91cb5b
 
 
 
 
 
da262cb
 
 
d91cb5b
da262cb
 
 
 
 
 
 
 
d91cb5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
da262cb
d91cb5b
 
 
 
da262cb
 
 
 
 
 
 
 
d91cb5b
 
 
da262cb
 
d91cb5b
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
license: cc-by-4.0
task_categories:
  - image-to-image
  - depth-estimation
tags:
  - minecraft
  - shadows
  - raytracing
  - computer-vision
  - webdataset
pretty_name: Minecraft Vanilla & Sun Shadows (ML Subset)
---

# Minecraft Vanilla & Sun Shadows (ML Subset)

Public ML dataset of **10,441 Minecraft scenes** (`1280×720`) across **6 biomes** (`desert`, `forest`, `plains`, `snowy_plains`, `swamp`, `taiga`) captured at 7 times of day (`0, 1000, 3000, 6000, 9000, 11000, 12000`), pairing default **vanilla** renders with ground-truth **voxel-traced sun shadows** (`shadow.npz`), **depth** (`depth.npz`), **per-pixel block IDs** (`blocks.npz`), and **screen-space shadow masks** (`screen_shadow.npz`).

* **Main split (`train` + `test`):** `9,181` scenes (`minesr_atlas` + `minesr_test2`), with all `1,319` animal-detected scenes recaptured cleanly (`removeEntities: true`) and re-traced.
* **Unseen-world hold-out (`reserve`):** `1,260` scenes (`210` per biome × 6 biomes, `33` disjoint `512×512` cells, `0` shared cells between biomes, `0` entities on screen) captured in a completely separate seed (`miners_valid`).

No third-party shader renders are redistributed in this repository; only default Minecraft vanilla frames and world-derived geometry/shadow ground truth.

## Structure (WebDataset `.tar` shards)

```text
data/
  train/     minesr_atlas-<biome>-<nnn>.tar
  test/      minesr_atlas-<biome>-<nnn>.tar, minesr_test2-swamp-<nnn>.tar
  reserve/   miners_valid-<biome>-000.tar       (210 scenes per biome, 6 biomes)
entradas/
  train/     screen_shadow.npz and entities.npz per scene (when available)
  test/      screen_shadow.npz and entities.npz per scene (when available)
  reserve/   screen_shadow.npz per scene (1,260 scenes)
manifest.jsonl          # Main train/test scenes (9,181)
manifest_reserve.jsonl  # Unseen-world hold-out reserve scenes (1,260)
animal_review.json      # Manual animal-cleaning annotations (5,861 scenes reviewed)
biome_review.json       # Manually audited biome-border transition locations (18 locations, 93 scenes)
entities.csv            # Automated entity-mask pixel counts per scene
```

Each scene inside `data/<split>/*.tar` contains:
- `<scene_id>.vanilla.png` — Default Minecraft vanilla RGB frame (`1280×720`)
- `<scene_id>.depth.npz` — Linear/camera depth map (`depth`)
- `<scene_id>.shadow.npz` — World voxel-traced sun visibility (`bits`, `first`, `leaves`)
- `<scene_id>.blocks.npz` — Per-pixel Minecraft block IDs (`ids`, `names`)
- `<scene_id>.json` — Camera pose, FOV, biome, time of day, weather, split, cell

## Download examples

Install the Hugging Face CLI:
```bash
pip install huggingface_hub
```

### Download the entire dataset (~24 GB)
```bash
hf download stemjara/minecraft-shadows-ml --repo-type dataset --local-dir ./minecraft-shadows-ml
```

### Download only the unseen-world reserve split (`miners_valid`, 1,260 scenes, ~2.8 GB)
```bash
hf download stemjara/minecraft-shadows-ml --repo-type dataset \
  --include "manifest_reserve.jsonl" \
  --include "*/reserve/*.tar" \
  --local-dir ./minecraft-shadows-ml
```

### Download only a single biome (e.g. `swamp` or `taiga`)
```bash
hf download stemjara/minecraft-shadows-ml --repo-type dataset \
  --include "manifest.jsonl" --include "manifest_reserve.jsonl" \
  --include "animal_review.json" --include "biome_review.json" --include "entities.csv" \
  --include "*swamp*.tar" \
  --local-dir ./minecraft-shadows-ml
```