Providing anatomical labels as input #1304
Unanswered
BennoGesierich
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey so what concretely do you mean by 'getting stuck'? Does it never progress? Is nnU-Net still using the CPU/GPU when it is 'stuck'? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to provide anatomical labels as input modality?
I tried to do this by adding a map with the anatomical labels as input modality, specifying 'noNorm' for it in the dataset.json, to avoid normalization. In addition, I modified my custom trainer class and the
get_moreDA_augmentation
function, to allow a similar treatment of this label map during loading and data augmentation as that applied to the images from previous training stages by the cascade trainer. In particularly, I tried to move the label map in a customized version ofgenerate_train_batch
toseg
in the data dictionary and to move it back todata
at the end of the data augmentation using theMoveSegAsOneHotToData
class. It looks like it is working in principle, but the training gets always stuck in an early phase, but even not always in the same phase. It can be even different from fold to fold. Sometimes it gets stuck during_ = self.tr_gen.next()
orself.val_gen.next()
, and sometimes only afterwards, or even after the first few iterations.Therefore, I suspect that the problem is somehow related to a performance issue, even so I am working with a GeForce RTX 3090 (VRAM 24GB) and also RAM should be sufficient.
Hopefully, not to complex for an answer. In any case, I would be very grateful for any hint pointing me in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions