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