Giter Site home page Giter Site logo

asa008 / a-variation-of-dice-coefficient-loss-caffe-layer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holmesshuan/a-variation-of-dice-coefficient-loss-caffe-layer

0.0 0.0 0.0 14 KB

Compute the variation of dice coefficient loss for real-value regression task.

C++ 74.69% Cuda 25.31%

a-variation-of-dice-coefficient-loss-caffe-layer's Introduction

A Variation of Dice Coefficient Loss Layer

If you are interested in Unet or Segmentation, please jump to the Related works. ย 

Target:

Compute the variation of dice coefficient loss for real-value regression task, such as super resolution. Mathematically,

Loss = (2x^Ty+e)/(x^Tx+y^Ty+e)

where x,y are both vectors in float32. e referes to smooth term (default 1).

How to use?

layer {
  name: "loss"
  type: "DiceCoefLoss"
  bottom: "Deconv"
  bottom: "label"
  top: "loss"
}

The usage is the same as EuclideanLoss layer, restricted to bottom_size==2.

Related works:

Unet Dice Loss for segmentation:

Dice(A,B) = 2|AB|/(|A|+|B|)

Source Code:

  1. Caffe Implementation I.
  2. Caffe Implementation II.
  3. TensorFlow Unet with Dice Loss.

a-variation-of-dice-coefficient-loss-caffe-layer's People

Contributors

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