Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,115 +1,122 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: mixed
|
| 4 |
-
license_details: Annotations CC BY 4.0; images are Minecraft screenshots under Mojang's usage guidelines
|
| 5 |
-
pretty_name: Minecraft vanilla frames with depth, camera and traced sun shadows
|
| 6 |
-
task_categories:
|
| 7 |
-
- image-to-image
|
| 8 |
-
- depth-estimation
|
| 9 |
-
tags:
|
| 10 |
-
- minecraft
|
| 11 |
-
- webdataset
|
| 12 |
-
- depth
|
| 13 |
-
- shadows
|
| 14 |
-
size_categories:
|
| 15 |
-
- 10K<n<100K
|
| 16 |
-
configs:
|
| 17 |
-
- config_name:
|
| 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 |
-
| test |
|
| 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 |
-
| `<scene_id>.
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
| 93 |
-
|
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
``
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed
|
| 4 |
+
license_details: Annotations CC BY 4.0; images are Minecraft screenshots under Mojang's usage guidelines
|
| 5 |
+
pretty_name: Minecraft vanilla frames with depth, camera and traced sun shadows
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-to-image
|
| 8 |
+
- depth-estimation
|
| 9 |
+
tags:
|
| 10 |
+
- minecraft
|
| 11 |
+
- webdataset
|
| 12 |
+
- depth
|
| 13 |
+
- shadows
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: preview
|
| 18 |
+
default: true
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: preview/train-*.tar
|
| 22 |
+
- split: test
|
| 23 |
+
path: preview/test-*.tar
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# Minecraft vanilla frames with depth, camera and traced sun shadows
|
| 27 |
+
|
| 28 |
+
16 364 frames of Minecraft Java Edition 1.21.1 rendered **without shaders** at 1280×720, each with
|
| 29 |
+
its depth buffer, its camera, the block under every pixel and the sun shadow traced in the saved
|
| 30 |
+
world. They were captured with a Fabric mod that teleports the player through a plan of poses with
|
| 31 |
+
the world frozen (no weather, no entities, fixed time of day).
|
| 32 |
+
|
| 33 |
+
*Resumen en español: 16 364 fotogramas de Minecraft 1.21.1 sin shaders, con profundidad, cámara,
|
| 34 |
+
bloque por píxel y la sombra del sol trazada en el mundo guardado. Solo el pase vanilla.*
|
| 35 |
+
|
| 36 |
+
## What is not here
|
| 37 |
+
|
| 38 |
+
This is the input half of a paired dataset (vanilla frame → the same frame rendered with a shader
|
| 39 |
+
pack). The shader renders are **not included**: their licence does not clearly allow
|
| 40 |
+
redistributing them. With the poses and seeds below, the same frames can be rendered again with
|
| 41 |
+
any shader pack.
|
| 42 |
+
|
| 43 |
+
## Splits
|
| 44 |
+
|
| 45 |
+
| Split | Scenes | World |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| train | 13 039 | `minesr_atlas` |
|
| 48 |
+
| test | 2 625 | `minesr_atlas`, in cells of the map not used for training |
|
| 49 |
+
| test | 700 | `minesr_test2` (swamp), a different world |
|
| 50 |
+
|
| 51 |
+
| Biome | Scenes |
|
| 52 |
+
|---|---|
|
| 53 |
+
| forest | 3 990 |
|
| 54 |
+
| swamp | 3 430 |
|
| 55 |
+
| taiga | 3 346 |
|
| 56 |
+
| plains | 2 800 |
|
| 57 |
+
| desert | 1 400 |
|
| 58 |
+
| snowy_plains | 1 398 |
|
| 59 |
+
|
| 60 |
+
World seeds: `minesr_atlas` 5277617577473417202, `minesr_test2` 7308878374753708357.
|
| 61 |
+
|
| 62 |
+
Every position is captured at several times of day (`time_of_day`, in game ticks). 224 scenes
|
| 63 |
+
(32 positions) were removed by hand because an animal or a dropped item was in view.
|
| 64 |
+
|
| 65 |
+
## Files
|
| 66 |
+
|
| 67 |
+
WebDataset shards, up to 500 scenes and about 1 GB each: `data/<split>/<world>-<biome>-<nnn>.tar`.
|
| 68 |
+
`manifest.jsonl` has one line per scene (pose, biome, time, split and the shard that holds it).
|
| 69 |
+
|
| 70 |
+
The dataset viewer shows `preview/`: a 640×360 JPEG thumbnail and the manifest line of every
|
| 71 |
+
scene. It is only for browsing; the data is in `data/`.
|
| 72 |
+
|
| 73 |
+
Inside a shard, per scene:
|
| 74 |
+
|
| 75 |
+
| File | Content |
|
| 76 |
+
|---|---|
|
| 77 |
+
| `<scene_id>.vanilla.png` | the frame, RGB, 1280×720 |
|
| 78 |
+
| `<scene_id>.depth.npz` | `depth` float32 (720, 1280): OpenGL window-space depth in [0, 1], 1 = far plane or sky, origin top left |
|
| 79 |
+
| `<scene_id>.json` | pose, biome, weather, `time_of_day`, and `camera`: `position`, `view_matrix` and `projection_matrix` (4×4, column major) |
|
| 80 |
+
| `<scene_id>.blocks.npz` | `ids` uint16 (720, 1280): index into `names`, the block under each pixel (`nrmc:sky` for the sky) |
|
| 81 |
+
| `<scene_id>.shadow.npz` | sun shadow of each pixel, traced through the blocks of the saved world (see below) |
|
| 82 |
+
|
| 83 |
+
Linearise the depth with `camera.projection_matrix`; with the view matrix this gives the world
|
| 84 |
+
position of every pixel.
|
| 85 |
+
|
| 86 |
+
### `shadow.npz`
|
| 87 |
+
|
| 88 |
+
One ray per pixel from its surface towards the sun, through the block grid of the saved world.
|
| 89 |
+
This is information the renderer has and the image alone does not: the occluder can be outside
|
| 90 |
+
the frame.
|
| 91 |
+
|
| 92 |
+
| Array | Content |
|
| 93 |
+
|---|---|
|
| 94 |
+
| `bits` uint8 | flags of what the ray crossed: 1 solid block, 2 leaves, 4 plant; 8 the first occluder projects inside the frame; 16 it is also visible in the frame |
|
| 95 |
+
| `first` float16 | distance in blocks to the first occluder, `inf` if none |
|
| 96 |
+
| `leaves` uint8 | number of leaf cells crossed (capped at 255) |
|
| 97 |
+
| `screen_test` uint8 | internal flag of the tracer |
|
| 98 |
+
|
| 99 |
+
## Loading
|
| 100 |
+
|
| 101 |
+
Download the shards (`hf download stemjara/minecraft-vanilla-frames --repo-type dataset
|
| 102 |
+
--include "data/*"`) and read them with `webdataset` or `tarfile`:
|
| 103 |
+
|
| 104 |
+
```python
|
| 105 |
+
import io, json, numpy as np, webdataset as wds
|
| 106 |
+
|
| 107 |
+
ds = wds.WebDataset("data/train/minesr_atlas-forest-000.tar")
|
| 108 |
+
for s in ds:
|
| 109 |
+
meta = json.loads(s["json"])
|
| 110 |
+
depth = np.load(io.BytesIO(s["depth.npz"]))["depth"]
|
| 111 |
+
shadow = np.load(io.BytesIO(s["shadow.npz"]))
|
| 112 |
+
png_bytes = s["vanilla.png"]
|
| 113 |
+
break
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## Licence
|
| 117 |
+
|
| 118 |
+
- The images are screenshots of Minecraft, © Mojang AB, shared under Mojang's usage guidelines.
|
| 119 |
+
This dataset is not an official Minecraft product and is not approved by or associated with
|
| 120 |
+
Mojang or Microsoft.
|
| 121 |
+
- Everything derived by the authors (metadata, block maps, shadow traces, manifest) is released
|
| 122 |
+
under CC BY 4.0.
|