Replies: 1 comment 5 replies
-
Hi, @jmlipman. I think I understand the issue. I'm not sure how the grid sampler would help, though. I think this is feasible. There are a couple of details that need to be taken into account carefully, such as making sure that the list of Would you be willing to contribute for this? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, I'm working with 2D slices of 3D images, and the number of slices per image can be very different, from 20 to 300. Therefore, setting Queue's parameter samples_per_volume seems tricky: e.g., 50 would probably be too much for certain images and too little for others. Is there any clever way to deal with this? Ideally, one would set sample_per_volume=number_of_2D_slices in combination to UniformSampler. To avoid this, I was tempted to use GridSampler, however, GridSampler does not seem to accept SubjectsDataset, which, in contrast to Subjects (that currently accepts), contains the data transformations that I want to apply.
Edit: Not sure if it makes sense with the current implementation but samples_per_volume could receive a list of ints s.t. its length = number of subjects within SubjectsDataset. If a single int is given, then extract the same samples per volume.
Beta Was this translation helpful? Give feedback.
All reactions