Datasets:
The dataset viewer is not available for this split.
Error code: RowsPostProcessingError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
SyntheWorld Ground Cover 4-Class
本数据集面向地表覆盖语义分割作业,收录 30,100 对 512 × 512 像素的合成俯视图和标注图。彩色图来自 SyntheWorld 的三个 512 分辨率归档。每张标注图都由对应的八类地表真值逐像素映射得到,四类的编号与 Ground Cover Segmentation Challenge 一致。SyntheWorld 原始数据 · 比赛类别定义
| Hugging Face 划分 | 解压目录 | 图像与标注对数 | ZIP 数量 |
|---|---|---|---|
train |
train/ |
24,080 | 24 |
validation |
val/ |
6,020 | 6 |
两组均为 SyntheWorld 合成场景。按解码后的 RGB 像素计算 SHA-256,以种子 42 划出 20% 作验证,两个划分之间相同 RGB 图像的数量为 0。样本 ID 包含源归档编号,因此来自不同归档的同名图片可独立追溯。
掩码编码
掩码是单通道、8 位、与原图等大的 PNG,像素值直接表示类别。训练读取掩码时应保留整数值,缩放掩码用最近邻插值,计算损失和指标时忽略 255。
| 掩码值 | 类别 | SyntheWorld 原标注 |
|---|---|---|
| 0 | 其他 / Other | 1 裸地、2 草牧地、3 已开发用地、4 道路、7 农业用地 |
| 1 | 建筑 / Buildings | 8 Building |
| 2 | 水体 / Water | 6 Water |
| 3 | 树木 / Trees | 5 Tree |
| 255 | 忽略 | 未定义源值(包括 0)、透明或半透明像素 |
用 Python 读取
每条样本包含唯一的 id、RGB 原图 image 和单通道标注图 mask。
import numpy as np
from datasets import load_dataset
repo = "emiliiia/SyntheWorld-Ground-Cover-4Class"
examples = load_dataset(repo, split="train", streaming=True)
example = next(iter(examples))
rgb = np.asarray(example["image"].convert("RGB"))
mask = np.asarray(example["mask"])
print(example["id"], rgb.shape, mask.shape, np.unique(mask))
下载独立 PNG
每个分卷可单独解压。下载整个数据集时,在空目录运行下面的代码,所有分卷都会解压到同一根目录,顶层的 pairs.csv 可直接用于配对。清单列为 id,split,image,mask,图片和掩码路径均相对于解压根目录。class_map.json 保存类别编号、来源归档哈希和划分信息,SHA256SUMS 可用于核对下载文件。
from pathlib import Path
from zipfile import ZipFile
from huggingface_hub import snapshot_download
root = Path("SyntheWorld-Ground-Cover-4Class")
snapshot_download("emiliiia/SyntheWorld-Ground-Cover-4Class",
repo_type="dataset", local_dir=root)
for path in sorted((root / "data").glob("*.zip")):
with ZipFile(path) as archive:
archive.extractall(root)
来源与许可
原始 SyntheWorld 数据由 Jian Song、Hongruixuan Chen 和 Naoto Yokoya 发布。此作业版本保留原始 RGB 图像,将 ss_mask 的八类真值合并为四类,并提供训练与验证划分。数据沿用上游标注的 Creative Commons Attribution–NonCommercial 4.0 International(CC BY-NC 4.0)许可。原始论文(WACV 2024) · 上游数据卡 · 许可条款
- Downloads last month
- 14