Giter VIP home page Giter VIP logo

Comments (2)

Jingnan-Jia avatar Jingnan-Jia commented on June 20, 2024

@xi11 Sorry for the late reply. the labels here means the full labels. We assumed that the ground truth and prediction image should have the same labels for the same objects. For instance, in a furnature segmentation task, the tables and beds in ground truth image is 1 and 2, respectively. The prediction image should also assign 1 and 2 to tables and bed. Otherwise, we think the prediction is wrong.

Therefore, if you have 5 classes to segment, [1, 2, 3, 4, 5], excluding background, and if some images may only have 3 classes in ground truth, [1, 2, 0, 0, 5], and if your perfect prediction is also 3 classes, [1, 2, 0, 0, 5]. It is easy to know that the dice for the label 1, 2 and 5 will be almost 1. Then what is the dice of label 3 and 4? The answer is:

If label 3 and 4 did not appear in ground truth and also did not appear in prediction image, we should think that the prediction is correct. Therefore, the dice, jaccard should be 1.

In the previous version (1.1.*), I did not consider such cases you mentioned. But after I saw your question, I updated the package so that in such cases, we can also get the correct metrics.

Note: Please ensure install the latest version (>=1.2.6) to get the correct output.

Therefore, your concerns will not appear. Actually, this will eventually increase the performance for class 3 and class 4.

If you have more questions, please let me know.

from segmentation_metrics.

xi11 avatar xi11 commented on June 20, 2024

@Jingnan-Jia Thanks for the detailed explanation, really appreciate it!

from segmentation_metrics.

Related Issues (17)

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.