Skip to content

This is the official repository for our CVPR 2023 paper 'Task-Specific Fine-Tuning via Variational Information Bottleneck for Weakly-Supervised Pathology Whole Slide Image Classification'.

Notifications You must be signed in to change notification settings

invoker-LL/WSI-finetuning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSI-FT (Whole Slide Image Finetuning )

This is the official repository for our CVPR 2023 paper.

Task-Specific Fine-Tuning via Variational Information Bottleneck for Weakly-Supervised Pathology Whole Slide Image Classification

Enviroment:

Check packages in requirements.txt. Despite torch and numpy for training, openslid-python and nvidia-dali-cuda110 are quite important.

Stage-1a (baseline):

Mostly folked from CLAM, with minor modification. So just follow the docs to perform baseline, or with following steps:

  1. Preparing grid patches of WSI without overlap.
bash create_patches.sh
  1. Preparing pretrained patch features fow WSI head training.
bash create_feature.sh
  1. Training baseline WSI model.
bash train.sh

Stage-1b (variational IB training):

bash vib_train.sh

Stage-2 (wsi-finetuning with topK):

  1. Collecting top-k patches of WSI by inference vib model, save in pt form.
bash extract_topk_rois.sh
  1. Perform end-to-end training.
bash e2e_train.sh

Stage-3 (training wsi head with fine-tuned patch backbone):

Now you can use finetuned patch bakcbone in stage-2 to generate patch features, then run stage-1 again with the new features.

Citation

If you find this repository useful, please consider giving a star ⭐ and citation 🦖:

@InProceedings{Li_2023_CVPR,
    author    = {Li, Honglin and Zhu, Chenglu and Zhang, Yunlong and Sun, Yuxuan and Shui, Zhongyi and Kuang, Wenwei and Zheng, Sunyi and Yang, Lin},
    title     = {Task-Specific Fine-Tuning via Variational Information Bottleneck for Weakly-Supervised Pathology Whole Slide Image Classification},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2023},
    pages     = {7454-7463}
}

About

This is the official repository for our CVPR 2023 paper 'Task-Specific Fine-Tuning via Variational Information Bottleneck for Weakly-Supervised Pathology Whole Slide Image Classification'.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published