adeshsingh5505/megalith-10m
收藏Hugging Face2026-01-25 更新2026-03-29 收录
下载链接:
https://hf-mirror.com/datasets/adeshsingh5505/megalith-10m
下载链接
链接失效反馈官方服务:
资源简介:
---
license: mit
---
# 🗿 Megalith-10m
### What is Megalith-10m?

Megalith-10m is a dataset of ~10 million links to Flickr images that were categorized as "photo" with [license info](https://www.flickr.com/services/api/flickr.photos.licenses.getInfo.htm) of:
* [No known copyright restrictions (Flickr commons)](https://www.flickr.com/commons/usage), or
* [United States Government Work](https://en.wikipedia.org/wiki/Copyright_status_of_works_by_the_federal_government_of_the_United_States), or
* [Public Domain Dedication (CC0)](https://creativecommons.org/publicdomain/zero/1.0/), or
* [Public Domain Mark](https://en.wikipedia.org/wiki/Public_Domain_Mark)
### What's the intended use of Megalith-10m?
Megalith-10m is intended to contain only links to wholesome unedited uncopyrighted photographs - the sort of images that we humans see when we walk around outside.
I collected Megalith-10m for the purpose of training neural networks, but you're welcome to use Megalith-10m for whatever you want.
Of course, I recommend conducting your own independent analysis of content and copyright status before using Megalith-linked images in Serious Projects.
### Where can I get text captions for Megalith-10m?
* [DrawThings.ai](https://drawthings.ai) have uploaded [`megalith-10m-sharecap`](https://huggingface.co/datasets/drawthingsai/megalith-10m-sharecap) (captions made with [ShareCaptioner](https://huggingface.co/Lin-Chen/ShareCaptioner)) <br/><a href="https://huggingface.co/datasets/drawthingsai/megalith-10m-sharecap"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/vXM-x4TNfRn3AQTRGveLn.png' width=720px/></a>
* [AI Picasso](https://aipicasso.app) have uploaded [`megalith-10m-florence2`](https://huggingface.co/datasets/aipicasso/megalith-10m-florence2) (captions made with [Florence 2](https://huggingface.co/microsoft/Florence-2-large)) <br/><a href="https://huggingface.co/datasets/aipicasso/megalith-10m-florence2"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/RVHZluYqq4-pB1mFpq5Qj.png' width=720px/></a>
* [CaptionEmporium](https://huggingface.co/CaptionEmporium) have uploaded [`flickr-megalith-10m-internvl2-multi-caption`](https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption) (captions made with [InternVL2-8B](https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption/blob/main/OpenGVLab/InternVL2-8B) as well as shorter single-sentence captions made by summarizing the InternVL2/Florence2/ShareCaptioner results with [Llama3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)) <br/><a href="https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/BObamPthy8kiQICGjCQ4f.png' width=720px/></a>
* [Moondream](https://moondream.ai) have uploaded [`megalith-mdqa`](https://huggingface.co/datasets/moondream/megalith-mdqa), captions and Q&A pairs made with Moondream
### How can I efficiently download the images referenced by Megalith-10m?
* [DrawThings.ai](https://drawthings.ai) has archived the images linked by Megalith-10m here: https://huggingface.co/datasets/drawthingsai/megalith-10m
* If you want to download Megalith-10m images directly from Flickr, I posted a sample [downloading command](https://huggingface.co/datasets/madebyollin/megalith-10m/discussions/2#6693f3a7e05c3f1e0e0d62c1) you can use with [img2dataset](https://github.com/rom1504/img2dataset/)
### How was Megalith-10m collected?
I used the Flickr API to query for photos matching some basic criteria (SFW photo with CC0 / public domain license info), which gave me around 12 million links.
I then used various filtering strategies to exclude ~2m image links which didn't appear to point to wholesome public-domain minimally-edited photos.
These filtering strategies included:
1. Account-level filtering, based on
1. Manual adjudication for the top 5000 most prolific accounts
2. Repeated-watermark detection
2. Photo-level filtering, based on
1. Image metadata
1. Mention of copyright restrictions in the EXIF tags
2. Mention of copyright restrictions in the text description
2. Image content
1. Duplicate detection
2. CLIP-assisted checking for
1. Clearly non-photo images (illustrations, screenshots, 3d renders, etc.)
2. Clearly non-wholesome images (violence, nudity, etc.)
3. Minimum-resolution enforcement (at least 256x256 pixels)
4. Manual spot-checking of some images and metadata
### What content does Megalith-10m contain?
The [demo notebook](./Megalith_Demo_Notebook.ipynb) shows a random sample of 100 images being loaded from the links in Megalith-10m.
Based on this random sample, I would estimate the following dataset statistics:
* 5-7% of images may have minor edits or annotations (timestamps, color grading, borders, etc.)
* 1-2% of images may be copyright-constrained (watermarks or text descriptions cast doubt on the license metadata)
* 1-2% of images may be non-wholesome (guns, suggestive poses, etc.)
* 1-2% of images may be non-photos (paintings, screenshots, etc.)
### Is 10 million images really enough to teach a neural network about the visual world?
For the parts of the visual world that are well-represented in Megalith-10m, definitely!
Projects like [CommonCanvas](https://arxiv.org/abs/2310.16825), [Mitsua Diffusion](https://huggingface.co/Mitsua/mitsua-diffusion-one), and [Matryoshka Diffusion](https://arxiv.org/abs/2310.15111)
have shown that you can train useable generative models on similarly-sized image datasets.
Of course, many parts of the world aren't well-represented in Megalith-10m, so you'd need additional data to learn about those.
### What have people done with Megalith-10m?
1. AI Picasso have successfully trained a full text-to-image model [CommonArt β](https://huggingface.co/aipicasso/commonart-beta) on Megalith-10m (and other open datasets).
2. I've successfully trained small [text-to-image models](https://x.com/madebyollin/status/1788282620981497981) on Megalith-10m for my own education.
3. Megalith-10m was among the datasets used to train DeepSeek's [Janus](https://github.com/deepseek-ai/Janus) and [DeepSeek-VL2](https://arxiv.org/abs/2412.10302) models
4. Megalith-10m was used to train [Bokeh Diffusion](https://atfortes.github.io/projects/bokeh-diffusion/) which adds bokeh control to T2I models
5. Megalith-10m was used to help train [OpenSDI](https://github.com/iamwangyabin/OpenSDI), a detector for diffusion-generated images
6. Megalith-10m was used to train [otoro](https://huggingface.co/aihub-geniac/oboro), an open-weights image generator by AiHUB
7. Megalith-10m was used to train [NextFlow](https://arxiv.org/abs/2601.02204), a large next-scale autoregressive generator from ByteDance
---
许可证:MIT协议
---
# 🗿 巨石-10M(Megalith-10m)
### 什么是巨石-10M?

巨石-10M是一个包含约1000万条Flickr图片链接的数据集,这些图片被归类为"照片"类别,且符合以下许可证要求,相关许可证信息可参考[此处](https://www.flickr.com/services/api/flickr.photos.licenses.getInfo.htm):
* 无已知版权限制(Flickr共享库),详情见[https://www.flickr.com/commons/usage](https://www.flickr.com/commons/usage)
* 美国政府作品,详情见[https://en.wikipedia.org/wiki/Copyright_status_of_works_by_the_federal_government_of_the_United_States](https://en.wikipedia.org/wiki/Copyright_status_of_works_by_the_federal_government_of_the_United_States)
* 公共域奉献(CC0),详情见[https://creativecommons.org/publicdomain/zero/1.0/](https://creativecommons.org/publicdomain/zero/1.0/)
* 公共域标记,详情见[https://en.wikipedia.org/wiki/Public_Domain_Mark](https://en.wikipedia.org/wiki/Public_Domain_Mark)
### 巨石-10M的设计用途
巨石-10M仅收录健康、未经过编辑的无版权照片链接,即人类日常出行时所见的各类自然场景与日常图像。
作者开发该数据集的初衷是用于神经网络训练,但用户可将其用于任意合法用途。当然,作者建议用户在将数据集中的图片用于正式项目前,自行对图片内容与版权状态进行独立核查。
### 如何获取巨石-10M的文本标注?
* DrawThings.ai 已上传`megalith-10m-sharecap`数据集(标注由[ShareCaptioner](https://huggingface.co/Lin-Chen/ShareCaptioner)生成),详情见[https://huggingface.co/datasets/drawthingsai/megalith-10m-sharecap](https://huggingface.co/datasets/drawthingsai/megalith-10m-sharecap) <br/><a href="https://huggingface.co/datasets/drawthingsai/megalith-10m-sharecap"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/vXM-x4TNfRn3AQTRGveLn.png' width=720px/></a>
* AI Picasso 已上传`megalith-10m-florence2`数据集(标注由[Florence 2](https://huggingface.co/microsoft/Florence-2-large)生成),详情见[https://huggingface.co/datasets/aipicasso/megalith-10m-florence2](https://huggingface.co/datasets/aipicasso/megalith-10m-florence2) <br/><a href="https://huggingface.co/datasets/aipicasso/megalith-10m-florence2"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/RVHZluYqq4-pB1mFpq5Qj.png' width=720px/></a>
* CaptionEmporium 已上传`flickr-megalith-10m-internvl2-multi-caption`数据集(标注由[InternVL2-8B](https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption/blob/main/OpenGVLab/InternVL2-8B)生成,同时通过[Llama3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)对InternVL2、Florence2与ShareCaptioner的标注结果进行摘要,生成更简洁的单句标注),详情见[https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption](https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption) <br/><a href="https://huggingface.co/datasets/CaptionEmporium/flickr-megalith-10m-internvl2-multi-caption"><img src='https://cdn-uploads.huggingface.co/production/uploads/630447d40547362a22a969a2/BObamPthy8kiQICGjCQ4f.png' width=720px/></a>
* Moondream 已上传`megalith-mdqa`数据集,其中包含由Moondream生成的图片标注与问答对,详情见[https://huggingface.co/datasets/moondream/megalith-mdqa](https://huggingface.co/datasets/moondream/megalith-mdqa)
### 如何高效下载巨石-10M引用的图片?
* DrawThings.ai 已将巨石-10M链接的所有图片存档,存档地址为:https://huggingface.co/datasets/drawthingsai/megalith-10m
* 若需直接从Flickr下载图片,作者发布了可配合[img2dataset](https://github.com/rom1504/img2dataset/)使用的示例下载命令,详情见[https://huggingface.co/datasets/madebyollin/megalith-10m/discussions/2#6693f3a7e05c3f1e0e0d62c1](https://huggingface.co/datasets/madebyollin/megalith-10m/discussions/2#6693f3a7e05c3f1e0e0d62c1)
### 巨石-10M的采集流程
作者通过Flickr API查询符合以下基础条件的照片:SFW(安全工作区)类别且带有CC0/公共域许可证信息,共获取到约1200万条图片链接。随后作者通过多种过滤策略移除了约200万条不符合要求的图片链接,这些链接指向的并非健康的公共域且仅经过少量编辑的照片。本次使用的过滤策略包括:
1. 账号级过滤,基于以下规则:
1. 对前5000个多产账号进行人工审核
2. 重复水印检测
2. 图片级过滤,基于以下规则:
1. 图片元数据:
1. EXIF标签中提及版权限制
2. 图片文本描述中提及版权限制
2. 图片内容:
1. 重复检测
2. 基于CLIP的辅助检查:
1. 明显非照片类图像(插画、截图、3D渲染等)
2. 明显非健康图像(暴力、裸露等)
3. 最低分辨率限制(不低于256×256像素)
4. 对部分图片与元数据进行人工抽查
### 巨石-10M包含的内容概况
项目附带的[演示笔记本](./Megalith_Demo_Notebook.ipynb)展示了从数据集中随机抽取的100张图片的加载效果。基于该随机样本,作者估算数据集的统计特征如下:
* 5%~7%的图片可能存在轻微编辑或标注(如时间戳、色彩分级、边框等)
* 1%~2%的图片可能存在版权限制(水印或文本描述对许可证元数据提出质疑)
* 1%~2%的图片可能包含非健康内容(如枪支、暗示性姿势等)
* 1%~2%的图片可能属于非照片类别(如绘画、截图等)
### 1000万张图片是否足以支撑神经网络学习视觉世界?
对于巨石-10M中充分覆盖的视觉领域,答案是肯定的!诸如[CommonCanvas](https://arxiv.org/abs/2310.16825)、[Mitsua Diffusion](https://huggingface.co/Mitsua/mitsua-diffusion-one)与[Matryoshka Diffusion](https://arxiv.org/abs/2310.15111)等项目已证明,可在同等规模的图片数据集上训练出可用的生成模型。当然,世界上许多视觉场景并未在巨石-10M中得到充分体现,因此若需学习这些场景,则需要额外的数据集支撑。
### 已有项目对巨石-10M的应用情况
1. AI Picasso 基于巨石-10M(及其他开源数据集)成功训练了完整的文本到图像模型[CommonArt β](https://huggingface.co/aipicasso/commonart-beta)。
2. 作者本人基于巨石-10M训练了小型文本到图像模型,用于个人学习研究,相关内容见[https://x.com/madebyollin/status/1788282620981497981](https://x.com/madebyollin/status/1788282620981497981)。
3. 巨石-10M是训练DeepSeek的[Janus](https://github.com/deepseek-ai/Janus)与[DeepSeek-VL2](https://arxiv.org/abs/2412.10302)模型所使用的数据集之一。
4. 巨石-10M被用于训练[Bokeh Diffusion](https://atfortes.github.io/projects/bokeh-diffusion/),该模型可为文本到图像(T2I)模型添加散景(Bokeh)控制能力。
5. 巨石-10M被用于辅助训练[OpenSDI](https://github.com/iamwangyabin/OpenSDI),一款扩散生成图像检测器。
6. 巨石-10M被用于训练[otoro](https://huggingface.co/aihub-geniac/oboro),一款由AiHUB推出的开源权重图像生成模型。
7. 巨石-10M被用于训练[NextFlow](https://arxiv.org/abs/2601.02204),一款由字节跳动推出的大型下一代规模自回归生成模型。
提供机构:
adeshsingh5505


