Skip to content
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

The number of patch #4

Closed
wxr521314 opened this issue Jan 11, 2022 · 3 comments
Closed

The number of patch #4

wxr521314 opened this issue Jan 11, 2022 · 3 comments

Comments

@wxr521314
Copy link

Hi friends,
Here I go again. I have some questions for you, My data is in 3D. I want to know how many patches my data is divided into. My patch_size is 24x320x320. Can I understand that 24 represents the number of data layers? However, some of my data is less than 24 layers. How did he input it to the network?
Best wish!

@rixez
Copy link
Owner

rixez commented Jan 11, 2022

Hi @wxr521314,
Seems like 24 represents the number of slices in the 3D volume. If this patch size is the result from nnUNet's preprocessing and planning step, I don't think you have anything to worry about. Since the network is fully convolutional, it should be possible to use input with different patch size, granted that the downsampling and upsampling operations result in the same dimension. For data with less than 24 slices, I think you can zero pad before doing inference or training.

@wxr521314
Copy link
Author

Ok, I see. Thank you very much.
In addition, how many patches is a data divided into? How do we look at this? Or where to watch it?

@rixez
Copy link
Owner

rixez commented Jan 11, 2022

During training, a batch of 3D volumes is selected and one random patch per volume will be extracted for training.
You can check the class below for more info about data loading

class DataLoader3D(SlimDataLoaderBase):

@rixez rixez closed this as completed Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants