From 30d33f9f5812e815bfe59c72f96374239189ed98 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 31 May 2023 19:37:33 +0200 Subject: [PATCH] Improve CLI description --- README.md | 4 ++-- run.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ba3cc7..56b5c25 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ options: --keep-fps maintain original fps --keep-frames keep frames directory --max-memory MAX_MEMORY - set max memory + maximum amount of RAM in GB to be used --max-cores CORES_COUNT - set max cpu cores + number of cores to be use for CPU mode ``` Looking for a CLI mode? Using the -f/--face argument will make the program in cli mode. diff --git a/run.py b/run.py index 0f6bfdf..3775973 100755 --- a/run.py +++ b/run.py @@ -37,8 +37,8 @@ parser.add_argument('-o', '--output', help='save output to this file', dest='out parser.add_argument('--gpu', help='use gpu', dest='gpu', action='store_true', default=False) parser.add_argument('--keep-fps', help='maintain original fps', dest='keep_fps', action='store_true', default=False) parser.add_argument('--keep-frames', help='keep frames directory', dest='keep_frames', action='store_true', default=False) -parser.add_argument('--max-memory', help='set max memory', type=int) -parser.add_argument('--max-cores', help='number of cores to use', dest='cores_count', type=int, default=max(psutil.cpu_count() - 2, 2)) +parser.add_argument('--max-memory', help='maximum amount of RAM in GB to be used', type=int) +parser.add_argument('--max-cores', help='number of cores to be use for CPU mode', dest='cores_count', type=int, default=max(psutil.cpu_count() - 2, 2)) for name, value in vars(parser.parse_args()).items(): args[name] = value