From 8840217829bbc6f62dc6f6e819a6d43805ffce7f Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 6 Mar 2019 15:57:09 +0100 Subject: [PATCH] Changed default core number. --- ocr_pyflow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocr_pyflow b/ocr_pyflow index ad6beb0..1ac635e 100755 --- a/ocr_pyflow +++ b/ocr_pyflow @@ -49,7 +49,7 @@ def parse_arguments(): help="Keep intermediate files.", required=False) parser.add_argument("--nCores", - default=multiprocessing.cpu_count(), + default=min(4, multiprocessing.cpu_count()), dest="nCores", help="Total number of cores available.", required=False,