Skip to content

Commit 0db9560

Browse files
committed
fine tune ignore label documentation
1 parent 33509b2 commit 0db9560

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

documentation/ignore_label.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Ignore Label
22

3-
The _ignore label_ can be used to mark regions that should be ignored by nnU-Net. When the _ignore label_ is used nnU-Net switches internally to a partial variant of its loss function (See our [paper](https://arxiv.org/abs/2403.12834) for more information). Consequently, all pixels marked with the ignore label are ignored during the loss computation and gradients are not propagated from these pixels. Furthermore, these pixels will also be excluded from model evaluation. The most common use-cases for the ignore label are:
3+
The _ignore label_ can be used to mark regions that should be ignored by nnU-Net. This can be used to
4+
learn from images where only sparse annotations are available, for example in the form of scribbles or a limited
5+
amount of annotated slices. Internally, this is accomplished by using partial losses, i.e. losses that are only
6+
computed on annotated pixels while ignoring the rest. Take a look at our
7+
[`DC_and_BCE_loss` loss](../nnunetv2/training/loss/compound_losses.py) to see how this is done.
8+
During inference (validation and prediction), nnU-Net will always predict dense segmentations. Metric computation in
9+
validation is of course only done on annotated pixels.
410

5-
- Sparse annotation
11+
Using sparse annotations can be used to train a model for application to new, unseen images or to autocomplete the
12+
provided training cases given the sparse labels.
13+
14+
(See our [paper](https://arxiv.org/abs/2403.12834) for more information)
15+
16+
Typical use-cases for the ignore label are:
17+
- Save annotation time through sparse annotation schemes
618
- Annotation of all or a subset of slices with scribbles (Scribble Supervision)
719
- Dense annotation of a subset of slices
820
- Dense annotation of chosen patches/cubes within an image
@@ -12,7 +24,8 @@ The _ignore label_ can be used to mark regions that should be ignored by nnU-Net
1224
If you are using nnU-Net's ignore label, please cite the following paper in addition to the original nnU-net paper:
1325

1426
```
15-
Gotkowski, K., Lüth, C., Jäger, P. F., Ziegler, S., Krämer, L., Denner, S., Xiao, S., Disch, N., H., K., & Isensee, F. (2024). Embarrassingly Simple Scribble Supervision for 3D Medical Segmentation. ArXiv. /abs/2403.12834
27+
Gotkowski, K., Lüth, C., Jäger, P. F., Ziegler, S., Krämer, L., Denner, S., Xiao, S., Disch, N., H., K., & Isensee, F.
28+
(2024). Embarrassingly Simple Scribble Supervision for 3D Medical Segmentation. ArXiv. /abs/2403.12834
1629
```
1730

1831
## Usecases

0 commit comments

Comments
 (0)