Loom52M / README.md
Ruler138's picture
Initial commit
3d9e310
|
Raw History Blame Contribute Delete
3.44 kB
---
pretty_name: Loom52M
viewer: false
language:
- en
task_categories:
- image-to-text
- text-to-image
tags:
- biomedicine
- scientific-figures
- contrastive-pretraining
- webdataset
license: other
---
# Loom52M
<p align="center">
<a href="https://arxiv.org/abs/2611.33151"><img alt="arXiv 2611.33151" src="https://img.shields.io/badge/arXiv-2611.33151-B31B1B"></a>
<a href="https://github.com/yuweiyang-anu/BioLoom"><img alt="GitHub code" src="https://img.shields.io/badge/GitHub-Code-181717?logo=github&logoColor=white"></a>
<a href="https://bioloom-clip.github.io/"><img alt="Project page" src="https://img.shields.io/badge/Project-Page-E91E63?logo=googlechrome&logoColor=white"></a>
<a href="https://huggingface.co/ChartFoundation/BioLoom-models"><img alt="BioLoom models" src="https://img.shields.io/badge/Models-BioLoom-7B61FF?logo=huggingface&logoColor=white"></a>
<a href="https://huggingface.co/datasets/ChartFoundation/BioLoom-EvalSuite"><img alt="Evaluation suite" src="https://img.shields.io/badge/Benchmark-EvalSuite-4C8BF5?logo=huggingface&logoColor=white"></a>
</p>
**Training data for BioLoom: Scaling Biomedical Vision-Language Models by Learning from the Structure of Scientific Articles**
Loom52M pairs biomedical figures and panels with text derived from the scientific literature. Whole figures retain their original captions. Panel text combines a visual description with a contextual caption grounded in the parent figure caption and relevant article paragraphs. The hierarchy preserves article, figure, and panel relationships for contrastive learning.
## ✨ At a glance
| Item | Released training split |
|---|---:|
| Image–text pairs | 52,437,129 |
| Whole-figure pairs | 13,140,133 |
| Panel pairs | 39,296,996 |
| Hierarchical WebDataset shards | 4,525 |
| Approximate download size | 2.42 TB |
### What each pair contains
- **Whole figures** are paired with their original figure captions.
- **Panel crops** retain a visible-content description and a contextual caption grounded in the parent caption and mentioning paragraphs.
- **Hierarchy metadata** preserves article, figure, and panel membership so loaders can construct structure-aware batches without flattening the corpus into unrelated pairs.
## 📦 Dataset layout
| Path | Contents |
|---|---|
| `train/` | 4,525 hierarchical WebDataset tar shards, 52,437,129 image–text pairs |
| `manifests/` | Training figure index |
| `dataset_stats.json` | Training corpus statistics |
Model checkpoints and evaluation assets are hosted separately through the links above.
## 📥 Download and use
Download the metadata and one shard first:
```bash
hf download ChartFoundation/Loom52M --repo-type dataset \
--include 'dataset_stats.json' 'train/hier-w00-000000.tar' \
--local-dir Loom52M
tar -tf Loom52M/train/hier-w00-000000.tar | head
```
Download the full training split with:
```bash
hf download ChartFoundation/Loom52M --repo-type dataset \
--include 'train/*.tar' 'dataset_stats.json' --local-dir Loom52M
```
Each WebDataset sample groups an image, caption, and JSON metadata under the same key. Keep the tar shards intact and pass the `train/` shard list to the hierarchical loader in the [training implementation](https://github.com/yuweiyang-anu/BioLoom). The shards total approximately 2.42 TB. Use [BioLoom-EvalSuite](https://huggingface.co/datasets/ChartFoundation/BioLoom-EvalSuite) to evaluate trained models.