Coder Social home page Coder Social logo

invoker-ll / wsi-finetuning Goto Github PK

View Code? Open in Web Editor NEW
68.0 5.0 14.0 978 KB

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'.

Shell 0.54% Python 99.46%

wsi-finetuning's Introduction

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}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.