Giter VIP home page Giter VIP logo

focal-tversky-unet's Introduction

Focal Tversky Attention U-Net

This repo contains the code accompanying our paper A novel focal Tversky loss function and improved Attention U-Net for lesion segmentation accepted at ISBI 2019.

TL;DR We propose a generalized focal loss function based on the Tversky index to address the issue of data imbalance in medical image segmentation. Additionally, we incorporate architectural changes that benefit small lesion segmentation.

Some differences from the paper

Figure 1 in the paper is parametrized by the function which is incorrectly depicted in Equation 4.

The code in this repository follows the parametrization: which is in line with Equation 4. I apologize for the confusion! Both parametrizations have the same effect on the gradients however I found the latter one to be more stable and so that is the loss function presented in this repo.

Observe the behaviour of the loss function with different modulations by gamma

We utilize attention gating in this repo which follows from Ozan Oktan and his collaborators. The workflow is depicted below:

Training

Training files for the ISIC2018 and BUS2017 Dataset B have been added. If training with ISIC2018, create 4 folders: orig_raw (not used in this code), orig_gt, resized-train, resized-gt, for full resolution input images, ground truth and resized images at 192x256 resolution, respectively.

If training with BUS2017, create 2 folders: original and gt for input data and ground truth data. In the bus_train.py script, images will be resampled to 128x128 resolution.

Citation

If you find this code useful, please consider citing our work:

@article{focal-unet,
  title={A novel Focal Tversky loss function with improved Attention U-Net for lesion segmentation},
  author={Abraham, Nabila and Khan, Naimul Mefraz},
  journal={arXiv preprint arXiv:1810.07842},
  year={2018}
}

focal-tversky-unet's People

Contributors

nabsabraham avatar

Watchers

James Cloos 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.