iter_patch memory consumption #5610
schellenchris
started this conversation in
General
Replies: 1 comment 2 replies
-
thanks for reporting, I create an issue to track it #5611 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was playing around with the GridPatchDataset / training with smaller Slices than the original volume, when I ran into some weird RAM OOM problems. After some investigation i noticed that line 290 in data/utils.py cause the problem:
MONAI/monai/data/utils.py
Lines 288 to 290 in d0db5fd
is there a reason to pad the image that much (especially padding the channels doesn't make sense for me)?
I managed to reduce the memory by 15! GB by modifying the code a bit and just padding the axis slices are generated from. I was just wondering if I am missing out on something.
Beta Was this translation helpful? Give feedback.
All reactions