Commit 9dde67b1 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: use half of memory available for lsgrm.

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -244,11 +244,11 @@ def lsgrm(input_image, params : LSGRMParams, out_seg, n_proc=None, memory=None,
else:
raise ValueError('Output type {} not recognized/supported.'.format(ext))
# Define default number of threads (half) and memory amount (3/4 of available)
# Define default number of threads (half) and memory amount (1/2 of available)
if n_proc is None:
n_proc = round(mp.cpu_count() / 2)
if memory is None:
memory = round(psutil.virtual_memory().available * 0.75)
memory = round(psutil.virtual_memory().available * 0.5)
else:
memory *= 1e6
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment