Skip to content

Commit

Permalink
Add the switch of whether to display the result.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiayuXu0 committed Oct 3, 2022
1 parent 0a1c1c9 commit 01ba6a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/image_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def parse_args():
parser.add_argument('--out-file', default=None, help='Path to output file')
parser.add_argument(
'--device', default='cuda:0', help='Device used for inference')
parser.add_argument(
'--show', action='store_true', help='Show the detection results')
parser.add_argument(
'--palette',
default='coco',
Expand Down Expand Up @@ -50,7 +52,7 @@ def main(args):
img,
data_sample=result,
draw_gt=False,
show=True,
show=args.show,
wait_time=0,
out_file=args.out_file,
pred_score_thr=args.score_thr)
Expand Down

0 comments on commit 01ba6a3

Please sign in to comment.