From 8ef89807e6bbec75befe678137f2dabd43fe3e11 Mon Sep 17 00:00:00 2001 From: FJDorfner Date: Fri, 29 Nov 2024 14:23:47 +0000 Subject: [PATCH] created minimal memory use example --- models/mrsegmentator/utils/MRSegmentatorMLRunner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/mrsegmentator/utils/MRSegmentatorMLRunner.py b/models/mrsegmentator/utils/MRSegmentatorMLRunner.py index dc9f4ffa..1d068fba 100644 --- a/models/mrsegmentator/utils/MRSegmentatorMLRunner.py +++ b/models/mrsegmentator/utils/MRSegmentatorMLRunner.py @@ -34,7 +34,9 @@ def task(self, instance: Instance, in_data: InstanceData, out_data: InstanceData bash_command = ["mrsegmentator"] bash_command += ["-i", in_data.abspath] bash_command += ["--outdir", tmp_dir] - bash_command += ["--nproc_export", "4"] + bash_command += ["--nproc_export", "1"] + bash_command += ["--nproc", "1"] + bash_command += ["--batchsize", "1"] if self.use_fast_mode: self.v("Running MRSegmentator in lower memory footprint mode ('--split_level', 1)")