Datasets:
Duplicate from 1aurent/PatchCamelyon
Browse filesCo-authored-by: Laureηt Fainsin <1aurent@users.noreply.huggingface.co>
- .gitattributes +55 -0
- README.md +90 -0
- data/test-00000-of-00002-bb04e6313f58efa0.parquet +3 -0
- data/test-00001-of-00002-3bfa172e8818685a.parquet +3 -0
- data/train-00000-of-00013-4717c3cf92578c96.parquet +3 -0
- data/train-00001-of-00013-549914845b4273b1.parquet +3 -0
- data/train-00002-of-00013-a859720d3cfcebdf.parquet +3 -0
- data/train-00003-of-00013-a70975735603ee91.parquet +3 -0
- data/train-00004-of-00013-f3cb3678324a5346.parquet +3 -0
- data/train-00005-of-00013-959ba247c1881dc0.parquet +3 -0
- data/train-00006-of-00013-318f5c6d89fc04ef.parquet +3 -0
- data/train-00007-of-00013-c8a1a9cf7273420c.parquet +3 -0
- data/train-00008-of-00013-3d4f66c19471ed0a.parquet +3 -0
- data/train-00009-of-00013-867b6df30133f28e.parquet +3 -0
- data/train-00010-of-00013-abf99d3df1f77818.parquet +3 -0
- data/train-00011-of-00013-e929006353f3ae95.parquet +3 -0
- data/train-00012-of-00013-73b855ce7d233beb.parquet +3 -0
- data/valid-00000-of-00002-0e1a29e0620125c6.parquet +3 -0
- data/valid-00001-of-00002-aad8011eb887c9d9.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
configs:
|
| 3 |
+
- config_name: default
|
| 4 |
+
data_files:
|
| 5 |
+
- split: train
|
| 6 |
+
path: data/train-*
|
| 7 |
+
- split: valid
|
| 8 |
+
path: data/valid-*
|
| 9 |
+
- split: test
|
| 10 |
+
path: data/test-*
|
| 11 |
+
dataset_info:
|
| 12 |
+
features:
|
| 13 |
+
- name: image
|
| 14 |
+
dtype: image
|
| 15 |
+
- name: label
|
| 16 |
+
dtype: bool
|
| 17 |
+
splits:
|
| 18 |
+
- name: train
|
| 19 |
+
num_bytes: 6114271847
|
| 20 |
+
num_examples: 262144
|
| 21 |
+
- name: valid
|
| 22 |
+
num_bytes: 768518807
|
| 23 |
+
num_examples: 32768
|
| 24 |
+
- name: test
|
| 25 |
+
num_bytes: 750794905
|
| 26 |
+
num_examples: 32768
|
| 27 |
+
download_size: 7639680898
|
| 28 |
+
dataset_size: 7633585559
|
| 29 |
+
task_categories:
|
| 30 |
+
- image-classification
|
| 31 |
+
tags:
|
| 32 |
+
- camelyon
|
| 33 |
+
- biology
|
| 34 |
+
- Histopathology
|
| 35 |
+
- Histology
|
| 36 |
+
- Digital Pathology
|
| 37 |
+
size_categories:
|
| 38 |
+
- 100K<n<1M
|
| 39 |
+
license: cc0-1.0
|
| 40 |
+
paperswithcode_id: pcam
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
# PatchCamelyon (PCam)
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
## Dataset Description
|
| 48 |
+
|
| 49 |
+
- **Homepage**: [github.com:basveeling/pcam](https://github.com/basveeling/pcam)
|
| 50 |
+
- **DOI**: https://doi.org/10.1007/978-3-030-00934-2_24
|
| 51 |
+
- **Publication Date** 2018-09-26
|
| 52 |
+
|
| 53 |
+
## Description
|
| 54 |
+
|
| 55 |
+
The PatchCamelyon benchmark is a new and challenging image classification dataset. It consists of 327.680 color images (96 x 96px) extracted from histopathologic scans of lymph node sections. Each image is annoted with a binary label indicating presence of metastatic tissue. PCam provides a new benchmark for machine learning models: bigger than CIFAR10, smaller than imagenet, trainable on a single GPU
|
| 56 |
+
|
| 57 |
+
## Why PCam
|
| 58 |
+
|
| 59 |
+
Fundamental machine learning advancements are predominantly evaluated on straight-forward natural-image classification datasets. Think MNIST, CIFAR, SVHN. Medical imaging is becoming one of the major applications of ML and we believe it deserves a spot on the list of _go-to_ ML datasets. Both to challenge future work, and to steer developments into directions that are beneficial for this domain.
|
| 60 |
+
We think PCam can play a role in this. It packs the clinically-relevant task of metastasis detection into a straight-forward binary image classification task, akin to CIFAR-10 and MNIST. Models can easily be trained on a single GPU in a couple hours, and achieve competitive scores in the Camelyon16 tasks of tumor detection and WSI diagnosis. Furthermore, the balance between task-difficulty and tractability makes it a prime suspect for fundamental machine learning research on topics as active learning, model uncertainty and explainability.
|
| 61 |
+
|
| 62 |
+
## Details
|
| 63 |
+
|
| 64 |
+
### Numbers
|
| 65 |
+
|
| 66 |
+
The dataset is divided into a training set of 262.144 (2^18) examples, and a validation and test set both of 32.768 (2^15) examples. There is no overlap in WSIs between the splits, and all splits have a 50/50 balance between positive and negative examples.
|
| 67 |
+
|
| 68 |
+
### Labeling
|
| 69 |
+
|
| 70 |
+
A positive label indicates that the center 32x32px region of a patch contains at least one pixel of tumor tissue. Tumor tissue in the outer region of the patch does not influence the label. This outer region is provided to enable the design of fully-convolutional models that do not use any zero-padding, to ensure consistent behavior when applied to a whole-slide image. This is however not a requirement for the PCam benchmark.
|
| 71 |
+
|
| 72 |
+
### Patch selection
|
| 73 |
+
|
| 74 |
+
PCam is derived from the Camelyon16 Challenge, which contains 400 H\&E stained WSIs of sentinel lymph node sections. The slides were acquired and digitized at 2 different centers using a 40x objective (resultant pixel resolution of 0.243 microns). We undersample this at 10x to increase the field of view.
|
| 75 |
+
We follow the train/test split from the Camelyon16 challenge, and further hold-out 20% of the train WSIs for the validation set. To prevent selecting background patches, slides are converted to HSV, blurred, and patches filtered out if maximum pixel saturation lies below 0.07 (which was validated to not throw out tumor data in the training set).
|
| 76 |
+
The patch-based dataset is sampled by iteratively choosing a WSI and selecting a positive or negative patch with probability _p_. Patches are rejected following a stochastic hard-negative mining scheme with a small CNN, and _p_ is adjusted to retain a balance close to 50/50.
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
```bibtex
|
| 81 |
+
@ARTICLE{Veeling2018-qh,
|
| 82 |
+
title = "Rotation Equivariant {CNNs} for Digital Pathology",
|
| 83 |
+
author = "Veeling, Bastiaan S and Linmans, Jasper and Winkens, Jim and Cohen, Taco and Welling, Max",
|
| 84 |
+
month = jun,
|
| 85 |
+
year = 2018,
|
| 86 |
+
archivePrefix = "arXiv",
|
| 87 |
+
primaryClass = "cs.CV",
|
| 88 |
+
eprint = "1806.03962"
|
| 89 |
+
}
|
| 90 |
+
```
|
data/test-00000-of-00002-bb04e6313f58efa0.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2843436b6f9d3925645f7888e8de04125d86d7a65682c401e679ab2951e7e781
|
| 3 |
+
size 375929557
|
data/test-00001-of-00002-3bfa172e8818685a.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74298bce37e7d6837702ede5c4df994b7db3ed9405fa194ee61b0e06b26bc7ce
|
| 3 |
+
size 375420474
|
data/train-00000-of-00013-4717c3cf92578c96.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99ed88ef674a4462d1cabb418699d210b288b27b51486cea5fa10e1edd2817dd
|
| 3 |
+
size 470507620
|
data/train-00001-of-00013-549914845b4273b1.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19d994a8a4f50ae35cd896386386cccf1d9dd896e0408c302903d91556c6bba5
|
| 3 |
+
size 471051496
|
data/train-00002-of-00013-a859720d3cfcebdf.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d418409e5a2a0e3d764e052bd7ebb98076ad9cd28747e2e0226760c40be18a2
|
| 3 |
+
size 470299887
|
data/train-00003-of-00013-a70975735603ee91.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb673be5806dacf8a4852caa4633b0fafcdaa8be0e7d7638de0578ded972e8cc
|
| 3 |
+
size 470402830
|
data/train-00004-of-00013-f3cb3678324a5346.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9380f7c89a3f8ba5edc0a1cb79d4f146d23cfaab19028c28d2f077f6448d7b9d
|
| 3 |
+
size 470320552
|
data/train-00005-of-00013-959ba247c1881dc0.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd85cbf7bc46c63a187a4bb90618b62dc6c08e28f20f7d685045b05d8e1f0427
|
| 3 |
+
size 470487421
|
data/train-00006-of-00013-318f5c6d89fc04ef.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72f65f3e42b29d45e9f4f6f6fd4f3920ed5fb9542e69ac0fcc04649c46db3678
|
| 3 |
+
size 470930058
|
data/train-00007-of-00013-c8a1a9cf7273420c.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d284c819a44aa85a6cb45be9155efdd3127f590c25dcfff328651c2ab695ee2c
|
| 3 |
+
size 470791868
|
data/train-00008-of-00013-3d4f66c19471ed0a.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08476f5ca568e74e5f937fbfffb79a6312387c708209e260be4d59e11d96acb5
|
| 3 |
+
size 472057102
|
data/train-00009-of-00013-867b6df30133f28e.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfa4f9e15f57cbef83fd7ef257b8fb3ab92915cb5e7860f9b7ca7cca88584bad
|
| 3 |
+
size 470777305
|
data/train-00010-of-00013-abf99d3df1f77818.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2aeb2d0f738eb865768204b9b230e55698157de698d38c244e811be7cf89346c
|
| 3 |
+
size 470810277
|
data/train-00011-of-00013-e929006353f3ae95.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b082df47ee3116f781a4bc8e493c1aef5be001a40bcf7dcef327d8d24a81db8c
|
| 3 |
+
size 471004929
|
data/train-00012-of-00013-73b855ce7d233beb.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31ad1932995754e1c215f5cc376550c0a2c7e3649845a066876fd819007fc7c6
|
| 3 |
+
size 470837796
|
data/valid-00000-of-00002-0e1a29e0620125c6.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:167e61e4f2bda552feb0de6460566ac75f862927d132f7e14e4534ecbd816b4a
|
| 3 |
+
size 383310709
|
data/valid-00001-of-00002-aad8011eb887c9d9.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8be5b9ecd1f7f18e945404225d4ceeff14c3266cbfc2ab6ae221b1877503350f
|
| 3 |
+
size 384741017
|