Skip to content

Hanminghao/H2GT

Repository files navigation

Multi-Scale Heterogeneity-Aware Hypergraph Representation for Histopathology Whole Slide Images

Pytorch implementation for the Heterogeneous Hypergraph Representation learning in the paper Multi-Scale Heterogeneity-Aware Hypergraph Representation for Histopathology Whole Slide Images.

Installation

a. Create a conda virtual environment and activate it.

conda create -n H2GT python=3.9 -y
conda activate H2GT

b. Install PyTorch and torchvision following the official instructions, e.g.,

conda install pytorch torchvision -c pytorch

c. Install other libraries.

Stage 1: Data pre-processing

Please refer to CLAM for data pre-processing.

Data pre-processing: Download the raw WSI data and Prepare the patches.

Stage 2: Construct heterogeneous hypergraph

The aggregator is firstly trained with bag-level labels end to end.

python construct_hypergraph.py --config /path/to/the/config

Stage 3: Training

For different methods, we pre-set their config files in folder configs.

python main.py --config /path/to/the/config

About

Pytorch implementation for H2GT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages