Datasets:

Modalities:
Image
Text
Formats:
parquet
License:

You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

MaterialScope

A manually annotated object detection dataset for compound material image to sub-image region detection, in COCO format.
All 2,855 images are fully annotated — no unannotated images in the split.


Dataset Summary

Metric Value
Total images 2,855
Total annotations 13,008
Categories 23
Avg. annotations per image 4
Max annotations per image 21
Annotation format COCO JSON
Image format JPG

Category Distribution

Category Annotation Count
A 2,552
B 2,539
C 2,192
D 1,979
E 1,145
F 867
G 436
H 346
I 219
J 109
K 85
L 64
M 33
N 26
O 19
P 8
Q 5
R 4
S 3
T 3
single 272
common 41
unlabel 61
Total 13,008

File Structure

merged_coco.json   ← COCO annotation file (images + annotations + categories)
images/            ← 2,855 JPG images

Annotation Format

Annotations follow the standard COCO format:

{
  "images": [
    { "id": 1, "file_name": "img1.jpg", "width": 1721, "height": 781 }
  ],
  "annotations": [
    {
      "id": 1,
      "image_id": 1,
      "category_id": 21,
      "bbox": [x, y, width, height],
      "area": 1318264.48,
      "iscrowd": 0
    }
  ],
  "categories": [
    { "id": 1, "name": "A" },
    { "id": 2, "name": "B" },
    ...
  ]
}

Bounding boxes are in [x_min, y_min, width, height] format (COCO standard).


Loading the Dataset

With Python (raw COCO)

import json
from PIL import Image

with open("merged_coco.json") as f:
    coco = json.load(f)

# Build a lookup: image_id → annotations
from collections import defaultdict
ann_by_image = defaultdict(list)
for ann in coco["annotations"]:
    ann_by_image[ann["image_id"]].append(ann)

# Load an image and its annotations
img_info = coco["images"][0]
image    = Image.open(f"images/{img_info['file_name']}")
anns     = ann_by_image[img_info["id"]]
print(f"{img_info['file_name']}: {len(anns)} annotations")

With pycocotools

from pycocotools.coco import COCO

coco = COCO("merged_coco.json")
img_ids = coco.getImgIds()
ann_ids = coco.getAnnIds(imgIds=img_ids[0])
anns    = coco.loadAnns(ann_ids)

With Ultralytics (YOLO training)

pip install ultralytics
from ultralytics.data.converter import convert_coco

convert_coco(
    labels_dir=".",
    save_dir="yolo_dataset",
    use_segments=False,
)

License

This dataset is licensed under Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0).

  • Free to use for research and non-commercial purposes
  • You must give appropriate credit when using or sharing this dataset
  • Derivatives must be shared under the same license
  • Commercial use is not permitted

Full license text: https://creativecommons.org/licenses/by-nc/4.0/


Citation

If you use this dataset in your research, please cite it as:


Downloads last month
13