Giter Site home page Giter Site logo

Comments (2)

HadiZayer avatar HadiZayer commented on May 24, 2024

I tried to replicate it but for me, the neural network always tend to produce empty results (label everything as background) after few epochs. How did you overcome that?

from unet-zoo.

shreyaspadhy avatar shreyaspadhy commented on May 24, 2024

Ok let me try answering these one by one -

  1. You don't need the scans to be in png format, as long as you can load them as numpy/PIL Image formats into Python, it doesn't matter. I used MATLAB and the niftii package to save them as .png.
  2. Yeah, I iterate over the 3D image, and save every z-coordinate as a 2D image.
  3. I chose to ignore all the images that have only background. The totally blank z-coordinates will be at the very top and very bottom of the scan, so you can put some sort of check when you're converting 3D to 2D to only convert if there is a non-zero component in the scan.
  4. I believe it took me 100 epochs to get those results.
  5. I believe I was getting completely empty results when I had completely empty images. The way the DICE score is written, it tends to equate any mask to blank with 1.0 score. That's why I added an epsilon to the denominator. If you remove the completely blank scans, your performance should improve.

Let me know if you need any other help!

from unet-zoo.

Related Issues (16)

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.