Giter Site home page Giter Site logo

mil4wsi's Introduction

Introduction

Welcome to the mil4wsi Framework – your gateway to state-of-the-art Multiple Instance Learning (MIL) model implementations for gigapixel whole slide images. This comprehensive open-source repository empowers researchers, developers, and enthusiasts to explore and leverage cutting-edge MIL techniques.

Installation

conda create -n wsissl python=3.9
conda activate wsissl
conda env update --file environment.yml

Data Preprocessing

This work uses CLAM to filter out background patches. After the .h5 coordinate generation, use:

Available Models

  • MaxPooling
  • MeanPooling
  • ABMIL
  • DSMIL
  • DASMIL
  • BUFFERMIL
  • TRANSMIL
  • HIPT

DASMIL

@inproceedings{Bontempo2023,
  title={{DAS-MIL: Distilling Across Scales for MIL Classification of Histological WSIs}},
  author={Bontempo, Gianpaolo and Porrello, Angelo and Bolelli, Federico and Calderara, Simone and Ficarra, Elisa},
  booktitle={{Medical Image Computing and Computer Assisted Intervention – MICCAI 2023}},
  year={2023}
}

Training

python main.py --datasetpath DATASETPATH --dataset [cam or lung]

Reproducibility

Pretrained models

DINO Camelyon16 DINO LUNG
x5 ~0.65GB x5 ~0.65GB
x10 ~0.65GB x10 ~0.65GB
x20 ~0.65GB x20 ~0.65GB
DASMIL Camelyon16 DASMIL LUNG
model ~9MB model ~15MB
ACC: 0.945 ACC: 0.92
AUC: 0.967 AUC: 0.966

Pytorch Geometric - Extracted Features

Camelyon16 LUNG
Dataset ~4.25GB Dataset ~17.5GB

Eval

setup checkpoints and datasets paths in utils/experiment.py then

python eval.py --datasetpath DATASETPATH --checkpoint CHECKPOINTPATH --dataset [cam or lung]

Contributing

We encourage and welcome contributions from the community to help improve the MIL Models Framework and make it even more valuable for the entire machine-learning community.

mil4wsi's People

Contributors

bontempogianpaolo1 avatar francescamiccolis avatar

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.