TC-SSA / README.md
OzzyChen97's picture
Update README.md
d0d89b8 verified
|
Raw
History Blame Contribute Delete
5.92 kB
metadata
language:
  - en
license: other
pretty_name: TC-SSA WSI Feature Bags
size_categories:
  - 1K<n<10K
task_categories:
  - image-feature-extraction
tags:
  - computational-pathology
  - whole-slide-imaging
  - multiple-instance-learning
  - conch
  - cpathpatchfeature
configs:
  - config_name: file-index
    data_files:
      - split: train
        path: metadata/file_index.csv

TC-SSA: Token Compression via Semantic Slot Aggregation for Gigapixel Pathology Reasoning

Python 3.8+ PyTorch License: MIT Project Page arXiv

Links: Project homepage | arXiv paper | Code

Authors: Zhuo Chen1,2, Xiaoyu Yang1, and Lijian Xu1,*

1 Shenzhen University of Advanced Technology, Shenzhen, Guangdong, China
2 University of Nottingham Ningbo China, FoSE, Ningbo, Zhejiang, China
* Corresponding author: xulijian@suat-sz.edu.cn


TC-SSA WSI Feature Bags

This public repository contains pre-extracted whole-slide image patch features used by TC-SSA and SSAMIL experiments. Binary feature bags are organized by feature source and encoder. The Dataset Viewer intentionally displays the file index in metadata/file_index.csv; it does not attempt to interpret the HDF5 or PyTorch feature files as tabular datasets.

Inventory

CONCHv1.5 features

Dataset Files Magnification / patch size Format Feature dim
BRACS 547 20x / 256 px HDF5 768
CAMELYON17 1,000 40x / 256 px HDF5 768
TCGA-BRCA 1,129 20x / 256 px HDF5 768
TCGA-LUAD 540 20x / 256 px HDF5 768

Each HDF5 file contains a features dataset with shape (num_patches, 768). Some files also contain patch coordinates.

CPathPatchFeature TCGA-BRCA subset

Encoder / artifact Files Format Feature dim
CHIEF / CTransPath 1,133 PyTorch tensor 768
GigaPath 1,133 PyTorch tensor 1,536
ResNet-50 1,133 PyTorch tensor 1,024
UNI v1 1,133 PyTorch tensor 1,024
Patch coordinates 1,133 HDF5 n/a

The four encoder directories have identical slide filename sets. The 1,125 slides used by the formal TCGA-BRCA experiment splits were validated for full coverage and expected feature dimensions. Missing files from the upstream BRCA subset were locally re-extracted and merged with the released collection.

Layout

features/
  conch_v15/
    BRACS/*.h5
    CAMELYON17/*.h5
    TCGA-BRCA/*.h5
    TCGA-LUAD/*.h5
  cpath_patch_feature/
    brca/
      chief/pt_files/*.pt
      gigap/pt_files/*.pt
      r50/pt_files/*.pt
      uni/pt_files/*.pt
      patches/*.h5
metadata/
  file_index.csv

Dataset Viewer and access

The Viewer exposes a searchable index rather than loading hundreds of gigabytes of heterogeneous binary tensors:

from datasets import load_dataset

index = load_dataset("OzzyChen97/TC-SSA", "file-index", split="train")
print(index[0])

Download selected files with hf download, then load HDF5 features with h5py.File(...) or PyTorch tensors with torch.load(..., map_location="cpu").

Provenance and references

The CPath encoder features and patch coordinates are derived from Dearcat/CPathPatchFeature, released with the work Revisiting End-to-End Learning with Slide-level Supervision in Computational Pathology. Please cite that repository and its associated publications when using the CPath subset.

The CONCH feature bags use CONCH, a pathology vision-language foundation model. The CPath collection uses UNI, CHIEF, GigaPath, and ResNet-50.

Original WSI datasets and access pages:

The upstream CPathPatchFeature repository additionally contains derived features for TCGA-BLCA, TCGA-NSCLC, CPTAC-NSCLC, CAMELYON, and PANDA. Those additional cohorts are referenced upstream and are not duplicated in this TC-SSA repository.

Citation

@inproceedings{chen2026tcssa,
  title     = {TC-SSA: Token Compression via Semantic Slot Aggregation for Gigapixel Pathology Reasoning},
  author    = {Chen, Zhuo and Yang, Xiaoyu and Xu, Lijian},
  booktitle = {Medical Image Computing and Computer Assisted Intervention -- MICCAI 2026},
  publisher = {Springer Nature},
  series    = {Lecture Notes in Computer Science},
  year      = {2026},
  doi       = {10.48550/arXiv.2603.01143},
  url       = {https://arxiv.org/abs/2603.01143}
}

Please also cite the original WSI dataset and encoder papers relevant to the files used in your study.