Auto3dSeg with multiple segmentation nrrd files. #7460
Unanswered
eclipse0922
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @eclipse0922, could you please show a small piece of code that can reproduce the issue, then I can help take a look at it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to run auto3dseg with my own dataset.
The dataset is generated from 3d slicer.
image format: nrrd
lable format: seg.nrrd
However, unlike normal labelling data
not every image has labelling data for every class, but only a subset of it.
Certain images only have certain classes.
for example
Image 1's labelling data has the classes foo and bar, whereas
image 2's labelling data has classes bar, baz, and
Image 3's labelling data has the classes foo, bar, baz, and class.
The labelling data in image 4 has classes foo, baz.
I followed the tutorial in the https://github.com/Project-MONAI/tutorials repository.
At first, when I simply specified 1 image per batch, I had no problems.
However, when I increase the batch size per image, I get an error while loading the data.
After checking the cause, it seems that the label_meta_dict contains all the tag information, not just the label id and name. One image's label has a class called foo and the colour tag and other information associated with it, but the other image's label has no segmentation information for the class foo, so the problem occurs when reading the key.
I'm sure this is the intended behaviour, but in my case it's causing problems and it seems like I should either not read that header or include it as common information in seg.nrrd unconditionally.
(so that the label ID and associated tags are present, but there is no segmentation area corresponding to those tags)
How can I prevent that information from being read and use them with auto3d seg' bundle generator?
Beta Was this translation helpful? Give feedback.
All reactions