Skip to content
Discussion options

You must be logged in to vote

Hi @ysuter, in monai we often use LoadImage to load data which I think doesn't support hdf5 now. You could load data with h5py first then use Dataset in monai. A typical input data like this:

For example, typical input data can be a list of dictionaries::
[{ { {
'img': 'image1.nii.gz', 'img': 'image2.nii.gz', 'img': 'image3.nii.gz',
'seg': 'label1.nii.gz', 'seg': 'label2.nii.gz', 'seg': 'label3.nii.gz',
'extra': 123 'extra': 456 'extra': 789
}, }, }]

Also, you could try to write a custom transform may be called LoadHdf5, then combine all the transforms.
For how to write custom tran…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@youwei1-sudo
Comment options

@KumoLiu
Comment options

Answer selected by ysuter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants