Closed z-fabian closed 3 years ago
@mmuckley As you suggested I added a new argument volume_sample_rate
. If it is not set, sample_rate
will behave the same way as before. If it is set, but sample_rate
is not, then we subsample by volumes. I changed the default values for both of these arguments to None, in which case 1.0
will be used. Should be 100% backwards compatible.
If
sample_rate < 1.0
,SliceDataset
subsamples the training dataset by slices and not by volumes. This is undesired sincesample_rate
should control what fraction of the volumes should be loaded.This fix modifies
SliceDataset
to subsample by volumes whensample_rate < 1.0
. If subsampling by slice is the desired behavior, then we should update the fuction helper to reflect that.