From 22f1b51cae43eafa13dd71089d1f6e4f448fe714 Mon Sep 17 00:00:00 2001 From: LWShowTime <51390653+LWShowTime@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:36:51 +0800 Subject: [PATCH] Update image_demo.py Add "--" to make default argument works. --- demo/image_demo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/image_demo.py b/demo/image_demo.py index 183f2387..f4847f8b 100755 --- a/demo/image_demo.py +++ b/demo/image_demo.py @@ -6,9 +6,9 @@ def main(): parser = ArgumentParser() - parser.add_argument('img', help='Image file') - parser.add_argument('config', help='Config file') - parser.add_argument('checkpoint', help='Checkpoint file') + parser.add_argument('--img', help='Image file', default="XX") + parser.add_argument('--config', help='Config file', default="XX") + parser.add_argument('--checkpoint', help='Checkpoint file', default="XX") parser.add_argument( '--device', default='cuda:0', help='Device used for inference') parser.add_argument(