Code Monkey home page Code Monkey logo

transformers_unsupervised_anomaly_segmentation's Introduction

Transformer-based Models for Unsupervised Anomaly Segmentation in Brain MR Images

Official implementation of Transformer-based Models for Unsupervised Anomaly Segmentation in Brain MR Images.

Paper accepted in the International MICCAI Brainlesion 2022 Workshop

@InProceedings{10.1007/978-3-031-33842-7_3,
    author="Ghorbel, Ahmed
    and Aldahdooh, Ahmed
    and Albarqouni, Shadi
    and Hamidouche, Wassim",
    editor="Bakas, Spyridon
    and Crimi, Alessandro
    and Baid, Ujjwal
    and Malec, Sylwia
    and Pytlarz, Monika
    and Baheti, Bhakti
    and Zenk, Maximilian
    and Dorent, Reuben",
    title="Transformer Based Models for Unsupervised Anomaly Segmentation in Brain MR Images",
    booktitle="Brainlesion:  Glioma, Multiple Sclerosis, Stroke  and Traumatic Brain Injuries",
    year="2023",
    publisher="Springer Nature Switzerland",
    address="Cham",
    pages="25--44",
    isbn="978-3-031-33842-7"
}

Tags

MICCAI BrainLes 2022 Workshop, Transformer, Autoencoder, TensorFlow, Keras, Anomaly Segmentation, Unsupervised, Neuroimaging, Deeplearning

Requirements

  • Python >= 3.6

All packages used in this repository are listed in requirements.txt. To install those, run:

pip3 install -r requirements.txt

Folder Structure

Transformers_Unsupervised_Anomaly_Segmentation/
│
├── Transformers_Unsupervised_Anomaly_Segmentation.ipynb - Jupyter notebook to work on Google Colab
│
├── data/
│   └── data.txt  - datasets descriptions and download link
│
├── models/ - Models defining, training and evaluating
│   ├── Autoencoders/
│       ├── DCAE.py
│       └── ...
│   ├── Latent Variable models/
│       ├── VAE.py
│       └── ...
│   └── Transformer based models/
│       ├── B_TAE.py
│       └── ...
│
├── saved/  - saving folder
│
└── scripts/ - small utility scripts
    ├── utils.py
    └── ...    

Usage

CLI Usage

Every model can be trained and tested individually using the scripts which are provided in the models/* folders.

Google Colab Usage

Training can be started by importing Transformers_Unsupervised_Anomaly_Segmentation.ipynb in Google Colab. This github repository is linked and can directly loaded into the notebook. However, the datasets have to be stored so that Google Colab can access them. Either uploading by a zip-file or uploading it to Google Drive and mounting the drive.

Disclaimer

Please do not hesitate to open an issue to inform of any problem you may find within this repository.

Reference

This project is inspired by the comparative study paper on Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Study.

@article{baur2021autoencoders,
  title={Autoencoders for unsupervised anomaly segmentation in brain mr images: A comparative study},
  author={Baur, Christoph and Denner, Stefan and Wiestler, Benedikt and Navab, Nassir and Albarqouni, Shadi},
  journal={Medical Image Analysis},
  pages={101952},
  year={2021},
  publisher={Elsevier}
}

License

This project is licensed under the GNU General Public License v3.0. See LICENSE for more details

transformers_unsupervised_anomaly_segmentation's People

Contributors

ahmedgh970 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gchetty gugababa

transformers_unsupervised_anomaly_segmentation's Issues

VQ-VAE with TF

Just wondering if the code of "VQ-VAE + Transformer" in your paper has been uploaded. Is it H_TAE.py or anything else? Thanks!

How to find the data?

Congratulations for your work. I'm trying to reproduce this work but I cannot find the drive files follow the data.txt, could you please check it?

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.