Datasets:
image imagewidth (px) 1.02k 1.02k | source stringclasses 1
value | subtype stringclasses 1
value | slide_id stringclasses 18
values | col int32 0 108 | row int32 0 46 | x int32 0 221k | y int32 0 94.2k | w int32 1.05k 2.05k | h int32 1.85k 2.05k | objective_power float32 40 40 | mpp_x float32 0.25 0.25 | in_test_set bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
cptac | AML | C3L-00452-41 | 16 | 3 | 32,768 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 3 | 40,960 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 3 | 43,008 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 3 | 45,056 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 3 | 47,104 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 3 | 49,152 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 3 | 51,200 | 6,144 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 15 | 4 | 30,720 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 16 | 4 | 32,768 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | true | |
cptac | AML | C3L-00452-41 | 17 | 4 | 34,816 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 18 | 4 | 36,864 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 19 | 4 | 38,912 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 4 | 40,960 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 4 | 43,008 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 4 | 45,056 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 4 | 47,104 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 4 | 49,152 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 4 | 51,200 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 26 | 4 | 53,248 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 27 | 4 | 55,296 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 28 | 4 | 57,344 | 8,192 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 15 | 5 | 30,720 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 16 | 5 | 32,768 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 17 | 5 | 34,816 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 18 | 5 | 36,864 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 19 | 5 | 38,912 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 5 | 40,960 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 5 | 43,008 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 5 | 45,056 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 5 | 47,104 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 5 | 49,152 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 5 | 51,200 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 26 | 5 | 53,248 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | true | |
cptac | AML | C3L-00452-41 | 27 | 5 | 55,296 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | true | |
cptac | AML | C3L-00452-41 | 28 | 5 | 57,344 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 29 | 5 | 59,392 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 30 | 5 | 61,440 | 10,240 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 14 | 6 | 28,672 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 15 | 6 | 30,720 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 16 | 6 | 32,768 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 17 | 6 | 34,816 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 18 | 6 | 36,864 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 19 | 6 | 38,912 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 6 | 40,960 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 6 | 43,008 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 6 | 45,056 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 6 | 47,104 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 6 | 49,152 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 6 | 51,200 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 26 | 6 | 53,248 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 27 | 6 | 55,296 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 28 | 6 | 57,344 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 29 | 6 | 59,392 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 30 | 6 | 61,440 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 31 | 6 | 63,488 | 12,288 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 12 | 7 | 24,576 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 13 | 7 | 26,624 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 14 | 7 | 28,672 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 15 | 7 | 30,720 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 16 | 7 | 32,768 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 17 | 7 | 34,816 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 18 | 7 | 36,864 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 19 | 7 | 38,912 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 7 | 40,960 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 7 | 43,008 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 7 | 45,056 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 7 | 47,104 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 7 | 49,152 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 7 | 51,200 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 26 | 7 | 53,248 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 27 | 7 | 55,296 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 28 | 7 | 57,344 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 29 | 7 | 59,392 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 30 | 7 | 61,440 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 31 | 7 | 63,488 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 32 | 7 | 65,536 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 33 | 7 | 67,584 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 34 | 7 | 69,632 | 14,336 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 9 | 8 | 18,432 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 10 | 8 | 20,480 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 11 | 8 | 22,528 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 12 | 8 | 24,576 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 13 | 8 | 26,624 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 14 | 8 | 28,672 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 15 | 8 | 30,720 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 16 | 8 | 32,768 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 17 | 8 | 34,816 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 18 | 8 | 36,864 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 19 | 8 | 38,912 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 20 | 8 | 40,960 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 21 | 8 | 43,008 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 22 | 8 | 45,056 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 23 | 8 | 47,104 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 24 | 8 | 49,152 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 25 | 8 | 51,200 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 26 | 8 | 53,248 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 27 | 8 | 55,296 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 28 | 8 | 57,344 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 29 | 8 | 59,392 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false | |
cptac | AML | C3L-00452-41 | 30 | 8 | 61,440 | 16,384 | 2,048 | 2,048 | 40 | 0.2467 | false |
PixCell — Training Data
The 1024×1024 H&E patches used to train PixCell, a generative foundation model for digital histopathology, from public sources and an in-house Stony Brook University cohort.
29,755,727 patches from 66,354 whole-slide images (~6.1 TB), extracted at 20× magnification. Images are the original JPEG files (quality 70) stored byte-for-byte, not re-encoded.
| config | source | slides | patches |
|---|---|---|---|
tcga_diagnostic |
TCGA FFPE diagnostic slides, 32 cancer types | 11,713 | 9,180,591 |
tcga_fresh_frozen |
TCGA fresh-frozen tissue slides, 32 cancer types | 18,192 | 3,680,187 |
cptac |
CPTAC (TCIA), 11 cancer types | 5,802 | 2,196,291 |
gtex |
GTEx normal tissue, 40 tissue types | 25,266 | 7,870,674 |
ptrc_hgsoc |
PTRC-HGSOC (TCIA), ovarian cancer | 346 | 144,134 |
sbu_olympus |
Stony Brook University (in-house), 46 organ/tissue types | 5,035 | 6,683,850 |
The PixCell paper's full training set also includes NLST slides, which are not part of this release. The SBU slides are not publicly available, so sbu_olympus rows have no WSI coordinates or scanner metadata (those fields are null).
Usage
from datasets import load_dataset
# stream everything, or pick one config: "tcga_diagnostic", "gtex", ...
ds = load_dataset("srikarym/PixCell-training-data", "tcga_diagnostic", split="train", streaming=True)
ex = next(iter(ds))
ex["image"] # PIL.Image, 1024x1024 RGB
To download a single source without datasets:
hf download srikarym/PixCell-training-data --repo-type dataset --include "data/cptac/*" --local-dir PixCell-training-data
Rows are grouped by subtype and slide. Shuffle (ds.shuffle(buffer_size=...)) before training.
Fields
| field | type | description |
|---|---|---|
image |
Image | JPEG patch; image.path is the original relative path <src>/<subtype>/single_1024/<slide_id>/<col>_<row>.jpeg |
source |
string | config name |
subtype |
string | cancer type (TCGA/CPTAC) or organ/tissue type (GTEx/SBU) |
slide_id |
string | slide identifier (WSI filename up to the first .) |
col, row |
int32 | DeepZoom tile address at 20× |
x, y, w, h |
int32 | patch region in level-0 pixels of the WSI; the patch is this region resized to 1024×1024 |
objective_power |
float32 | scanner objective power from the WSI metadata (null if absent; such slides were tiled as 20×) |
mpp_x |
float32 | microns per pixel at level 0, from the WSI metadata |
in_test_set |
bool | patch belongs to the subset used for FID evaluation in the paper (it is also part of the training data) |
metadata/slides.parquet has one row per slide: source, subtype, slide_id, wsi_file, num_patches, objective_power, mpp_x, width, height. Use wsi_file to locate the original slide in its source archive (null for SBU).
Extraction
Patches were tiled with the DeepZoom tiler from DSMIL (deepzoom_tiler.py --tile_size 1024: 20× base magnification, no overlap, background edge-threshold 15). To re-crop a patch from the original WSI:
import openslide
slide = openslide.OpenSlide(wsi_path)
patch = slide.read_region((x, y), 0, (w, h)).convert("RGB").resize((1024, 1024))
Using with the PixCell training code
The PixCell code expects JPEG folders plus a patch_names_all.hdf5 index. scripts/to_pixcell_layout.py rebuilds that layout from the downloaded shards:
python scripts/to_pixcell_layout.py --hf_dir PixCell-training-data --out /path/to/pixcell_data
The VAE latents and UNI-2h embeddings used for training are not included. They can be re-extracted from the images.
License and attribution
This dataset is released under CC-BY-4.0. The images are derived from public data, and use is also subject to each source's terms. Please cite and acknowledge the original sources:
- TCGA: The results here are in whole or part based upon data generated by the TCGA Research Network: https://www.cancer.gov/tcga.
- CPTAC: National Cancer Institute Clinical Proteomic Tumor Analysis Consortium (CPTAC); cite the individual CPTAC pathology collections on TCIA.
- GTEx: The Genotype-Tissue Expression (GTEx) Project was supported by the Common Fund of the Office of the Director of the National Institutes of Health, and by NCI, NHGRI, NHLBI, NIDA, NIMH, and NINDS.
- PTRC-HGSOC: cite the collection as listed on its TCIA page (CC BY 4.0).
- TCIA: Clark K, et al. The Cancer Imaging Archive (TCIA): Maintaining and Operating a Public Information Repository. J Digit Imaging. 2013;26(6):1045–1057.
Citation
@article{yellapragada2025pixcell,
title={PixCell: A generative foundation model for digital histopathology images},
author={Yellapragada, Srikar and Graikos, Alexandros and Li, Zilinghan and Triaridis, Kostas and Belagali, Varun and Kapse, Saarthak and Nandi, Tarak Nath and Madduri, Ravi K and Prasanna, Prateek and Kurc, Tahsin and others},
journal={arXiv preprint arXiv:2506.05127},
year={2025}
}
- Downloads last month
- 158