Skip to content

Commit b228571

Browse files
author
Lorenzo Bertoni
committed
add json-output argument
1 parent 68c6276 commit b228571

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

monoloco/run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ def cli():
2121
predict_parser.add_argument('--checkpoint', help='pifpaf model')
2222
predict_parser.add_argument('-o', '--output-directory', help='Output directory')
2323
predict_parser.add_argument('--output_types', nargs='+', default=['multi'],
24-
help='what to output: json keypoints skeleton for Pifpaf'
25-
'json bird front or multi for MonStereo')
24+
help='MonoLoco - what to output: json bird front or multi')
25+
predict_parser.add_argument('--json-output', default=None, nargs='?', const=True,
26+
help='OpenpifPaf - whether to output a json file,'
27+
'with the option to specify the output path or directory')
2628
predict_parser.add_argument('--no_save', help='to show images', action='store_true')
2729
predict_parser.add_argument('--hide_distance', help='to not show the absolute distance of people from the camera',
2830
default=False, action='store_true')

0 commit comments

Comments
 (0)