Datasets:
File size: 5,546 Bytes
9e8c445 | 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 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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | ---
license: mit
pretty_name: "MCubeS"
task_categories:
- image-segmentation
tags:
- computer-vision
- sidewalk
- road
- crosswalk
- building
- factory
- bicycle
- stop-sign
- railroad
- parking-meter
- fence
- pictograph
annotations_creators:
- expert-generated
size_categories:
- n<1K
source_datasets:
- original
configs:
- config_name: default
data_files:
- split: train
path: "train/*"
- split: validation
path: "valid/*"
- split: test
path: "test/*"
---
[](https://pictograph.io/datasets/pictograph-research/mcubes)
[](https://pictograph.io/datasets/pictograph-research/mcubes)   [](https://opensource.org/license/mit)
**[View on Pictograph](https://pictograph.io/datasets/pictograph-research/mcubes)** · [Pictograph Research](https://pictograph.io/org/pictograph-research) · [MIT License](https://opensource.org/license/mit)
## About
**MCubeS** is a computer-vision dataset from [MCubeS (Multimodal Material Segmentation)](https://github.com/kyotovision-public/multimodal-material-segmentation), hosted on [Pictograph](https://pictograph.io/datasets/pictograph-research/mcubes). The most common detected objects are sidewalk, road, crosswalk, building, factory, bicycle. On Pictograph you can browse every annotated image, import it into your own workspace in one click, export it in a dozen formats, or train a model on it directly.
## At a glance
| Metric | Value |
| :--- | ---: |
| Images | 500 |
| Annotations | 99,352 |
| Classes | 20 |
| Annotation types | polygon |
| Splits | train, validation, test |
## Quick start
Load it in one line with the `datasets` library, then read each record's boxes and class names:
```python
from datasets import load_dataset
from PIL import ImageDraw
ds = load_dataset("pictograph/mcubes", split="train")
example = ds[0]
image = example["image"] # a PIL image
objects = example["objects"] # {bbox, categories, category_names}
# draw every bounding box with its class name
draw = ImageDraw.Draw(image)
for (x, y, w, h), name in zip(objects["bbox"], objects["category_names"]):
draw.rectangle([x, y, x + w, y + h], outline="red", width=3)
draw.text((x, y - 12), name, fill="red")
# polygon masks live under example["segmentation"]:
# [{"label": name, "category": idx, "points": [[x, y], ...]}, ...]
image.show()
```
Prefer a full annotation editor, one-click import, multi-format export, and one-click training? [Open this dataset on Pictograph](https://pictograph.io/datasets/pictograph-research/mcubes).
## Dataset structure
This dataset uses the Hugging Face `imagefolder` layout: each split directory holds the images plus a `metadata.jsonl` that links every image to its annotations by `file_name`.
| Field | Description |
| :--- | :--- |
| `file_name` | Path to the image within the split directory. |
| `objects.bbox` | Bounding boxes as `[x, y, width, height]` (pixels). |
| `objects.categories` | Integer class index per box (matches the class list below). |
| `objects.category_names` | Human class name per box. |
| `segmentation` | List of `{label, category, points}`; `points` is a polygon ring `[[x, y], ...]`. |
## Data instance
One record (bounding boxes are `[x, y, width, height]` in pixels; the class index maps into the class list below):
```python
{
"image": <PIL.Image (RGB)>,
"objects": {
"bbox": [[172.0, 192.0, 249.4, 152.7]],
"categories": [0],
"category_names": ["asphalt"]
},
"segmentation": [
{"label": "asphalt", "category": 0, "points": [[176.9, 207.2], [259.0, 274.1], ...]}
]
}
```
## Classes
Class index matches `objects.categories` in `metadata.jsonl`.
| # | Class | Annotations |
| ---: | :--- | ---: |
| 0 | asphalt | 2,503 |
| 1 | concrete | 16,773 |
| 2 | metal | 11,243 |
| 3 | road marking | 1,706 |
| 4 | fabric leather | 900 |
| 5 | glass | 15,251 |
| 6 | plaster | 1,507 |
| 7 | plastic | 2,517 |
| 8 | rubber | 4,545 |
| 9 | sand | 1,404 |
| 10 | gravel | 252 |
| 11 | ceramic | 2,116 |
| 12 | cobblestone | 525 |
| 13 | brick | 5,124 |
| 14 | grass | 2,855 |
| 15 | wood | 5,590 |
| 16 | leaf | 9,834 |
| 17 | water | 336 |
| 18 | human body | 518 |
| 19 | sky | 13,853 |
## License
Released under [MIT License](https://opensource.org/license/mit).
## Source and attribution
The images and annotations come from [MCubeS (Multimodal Material Segmentation)](https://github.com/kyotovision-public/multimodal-material-segmentation), created by Kyoto University (Liang et al., CVPR 2022) and released under MIT License. We are grateful to the original authors. If you use this data, please cite the original source above.
## Citation
```bibtex
@InProceedings{Liang_2022_CVPR,
author = {Liang, Yupeng and Wakaki, Ryosuke and Nobuhara, Shohei and Nishino, Ko},
title = {Multimodal Material Segmentation},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2022},
pages = {19800-19808}
}
```
---
*Published from [Pictograph](https://pictograph.io/datasets/pictograph-research/mcubes) - annotate, train, and deploy from one API.*
|