Comments (2)
@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.
@Jingnan-Jia Thanks for the detailed explanation, really appreciate it!
from segmentation_metrics.
Related Issues (17)
- URGENT: Great package, your myutil.py script not included in pip/git version HOT 1
- AttributeError: module 'numpy' has no attribute 'Array' HOT 1
- TypeError: 'type' object is not subscriptable, line 144 HOT 2
- Import error HOT 6
- Adding TP TN FP FN HOT 5
- "Scan files are None, please check the data directory" HOT 4
- Open-source collaboration
- Code is not working for different cronology in labels HOT 3
- Unit of Volume Similarity HOT 4
- Type error issue when using this package with Pytest HOT 1
- Logging issues HOT 1
- Add .png suffix HOT 3
- Adding .dcm contour data
- Computing values on ground truth does not give perfect scores HOT 8
- Evaluation metric 3D or 2D based segmentation
- Potential Documentation Optimization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentation_metrics.