Borders Appear When Aggregating Patches Using GridAggregator #1259
Unanswered
isurusuranga
asked this question in
Q&A
Replies: 2 comments
-
Can I ask for a solution to my issue, please? Thanks in advance for your time and consideration. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am new to TorchIO and am currently attempting to train a GAN model using overlapping patches extracted from 3D medical images. For my experiment, I used patch dimensions of (64, 64, 64) and an overlap of (16, 16, 16). To achieve this, I utilized the TorchIO package to prepare the dataset before feeding it into the deep learning model. Specifically, I used the GridSampler to extract patches from the entire volume during training. Below is the code snippet showing how I used the GridSampler and SubjectsLoader for the training process:
Once the model was trained, I utilized it to predict the reconstructed image volumes by aggregating the patches using GridAggregator as shown below:
The output for a given input MRI image volume, however, displays visible border lines corresponding to the patch boundaries. This issue is evident in the aggregated output, as the attached image shows.
How can I produce a smooth reconstructed image volume without these border artefacts? Any guidance or suggestions on resolving this issue would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions