text-to-image-diffusiondb-2M
收藏资源简介:
该数据集是 DiffusionDB 的一个子集,专为训练文本到图像生成模型而设计。它源自 Hugging Face 上的原始 DiffusionDB 数据集(poloclub/diffusiondb),通过 Hugging Face Jobs 构建,覆盖了原始数据的前 20 个 part_id(共 20000 张源图像,经筛选后保留)。数据集中包含图像和对应的文本提示(prompt),并经过严格的清洗和过滤:丢弃了缺失、空或过短(少于3个字符)的提示;丢弃了任意维度小于256像素的图像;移除了NSFW标记的行(图像NSFW分数≥0.5或提示NSFW分数≥0.5);去除了基于SHA256哈希的完全重复图像。数据集包含以下列:image、prompt、part_id、seed、step、cfg、sampler、width、height、image_nsfw、prompt_nsfw。原始DiffusionDB中的user_name和timestamp字段被有意排除。此外,根目录下还包含一个独立的metadata.parquet文件,包含所有行(两个划分)及一个split列。尽管仓库名称中包含“2M”,但实际只是原始2000个part中的一小部分,并非完整的约200万张图像集合。数据集采用CC0-1.0(公共领域)许可协议,衍生自Wang等人2022年的工作(arXiv:2210.14896)。
This dataset is a subset of DiffusionDB, specifically designed for training text-to-image generation models. It derives from the original DiffusionDB dataset (poloclub/diffusiondb) on Hugging Face, built via Hugging Face Jobs, covering the first 20 part_ids of the original data (20,000 source images, filtered down). The dataset includes images and corresponding text prompts, and has undergone rigorous cleaning and filtering: prompts that are missing, empty, or too short (fewer than 3 characters) are discarded; images with any dimension smaller than 256 pixels are discarded; rows with NSFW flags (image NSFW score >= 0.5 or prompt NSFW score >= 0.5) are removed; exact duplicate images based on SHA256 hash are removed. The dataset contains the following columns: image, prompt, part_id, seed, step, cfg, sampler, width, height, image_nsfw, prompt_nsfw. The user_name and timestamp fields from the original DiffusionDB are intentionally excluded. Additionally, a separate metadata.parquet file is included in the root directory, containing all rows (both splits) with a split column. Although the repository name includes 2M, it is actually only a small part of the original 2000 parts, not the full set of approximately 2 million images. The dataset is licensed under CC0-1.0 (public domain) and derived from the work of Wang et al. 2022 (arXiv:2210.14896).
DiffusionDB 文本到图像子集
数据集简介
该数据集是一个经过清洗和安全过滤的图像-提示词配对数据集,旨在用于训练文本到图像(text-to-image)模型。数据源自 DiffusionDB,由 Hugging Face Jobs 直接从 poloclub/diffusiondb 构建而成。
规模说明
- 覆盖
part_id1-20,即过滤前包含 20,000 张源图像 - 尽管仓库名称中含有“2M”,但实际仅为 DiffusionDB 2000 个分区中的一小部分,并非完整的约 200 万图像集合
- 数据集规模分类为 10K 到 100K 之间
过滤处理
- 删除缺失、空值或过短(少于 3 个字符)的提示词
- 删除任一维度低于 256 像素的图像
- 删除被标记为 NSFW 的行(
image_nsfw >= 0.5或prompt_nsfw >= 0.5) - 删除完全重复的图像(通过 SHA256 哈希匹配)
数据列
包含以下字段:image、prompt、part_id、seed、step、cfg、sampler、width、height、image_nsfw、prompt_nsfw。
原始 DiffusionDB 元数据中的 user_name 和 timestamp 字段已被有意排除。仓库根目录还提供独立的 metadata.parquet 文件,包含所有行、两个分割(split)以及 split 列。
来源与许可
- 来源:派生自 poloclub/diffusiondb
- 许可协议:CC0-1.0(公有领域)
- 引用:Wang et al., 2022, arXiv:2210.14896




