Improve CLI description

This commit is contained in:
henryruhs 2023-05-31 19:37:33 +02:00
parent 50283c88e0
commit 30d33f9f58
2 changed files with 4 additions and 4 deletions

View File

@ -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.

4
run.py
View File

@ -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