-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collate_meta_tensor
to handle varying metadata keys
#6123
Comments
Thank you so much for raising this issue. I am currently bypassing this problem with some custom transforms, that manipulate the metadata (meta.py.zip). If these should be interesting for monai, I am happy to contribute them to the transforms. |
Looks like this PR can fix this issue. |
i still met similar issue, what should I do to avoid it?
Data was converted from dicom to nii.gz. for convenience. Except this key error, sometimes I met other KeyError: 'DICOM_0008_...' |
|
@KumoLiu I used monai 1.2 on the dataset on remote ubuntu server without issue. |
the
collate_meta_tensor
could be more permissive, if keys in the metadata are missing. I work with data from multiple datasets and frequently get errors, as keys are not the same across the different images. I usually just pop these keys in the metadata, but it would be nice, if this would not be an error at all.Originally posted by @kbressem in #5917 (comment)
The text was updated successfully, but these errors were encountered: