Skip to content

Commit

Permalink
set --image_dir to be required (#13896)
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatV authored Sep 23, 2024
1 parent f214be5 commit 3cc4ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def init_args():
parser.add_argument("--gpu_id", type=int, default=0)

# params for text detector
parser.add_argument("--image_dir", type=str)
parser.add_argument("--image_dir", type=str, required=True)
parser.add_argument("--page_num", type=int, default=0)
parser.add_argument("--det_algorithm", type=str, default="DB")
parser.add_argument("--det_model_dir", type=str)
Expand Down

0 comments on commit 3cc4ae9

Please sign in to comment.