-
I would like to use custom HDF5 datasets with h5py for speed. I previously used this with PyTorch and pymia, but I have trouble figuring out how I can fit that into the dataset module of MONAI. I only tried to put the initialized hdf dataset into data.Dataset and data.IterableDataset. I am grateful for any hints in the right direction :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @ysuter, in monai we often use Lines 69 to 75 in ab800d8 Also, you could try to write a custom transform may be called Hope these can help you, thanks! |
Beta Was this translation helpful? Give feedback.
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 useDataset
in monai. A typical input data like this:MONAI/monai/data/dataset.py
Lines 69 to 75 in ab800d8
Also, you could try to write a custom transform may be called
LoadHdf5
, then combine all the transforms.For how to write custom tran…