Skip to content

Commit

Permalink
Merge pull request #187 from kadirnar/list-img-size
Browse files Browse the repository at this point in the history
The image size parameter now supports list format.
  • Loading branch information
shensheng272 authored Sep 13, 2022
2 parents a384f21 + a4186a8 commit 639939f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_args_parser(add_help=True):
parser.add_argument('--weights', type=str, default='weights/yolov6s.pt', help='model path(s) for inference.')
parser.add_argument('--source', type=str, default='data/images', help='the source path, e.g. image-file/dir.')
parser.add_argument('--yaml', type=str, default='data/coco.yaml', help='data yaml file.')
parser.add_argument('--img-size', type=int, default=640, help='the image-size(h,w) in inference size.')
parser.add_argument('--img-size', nargs='+', type=int, default=[640, 640], help='the image-size(h,w) in inference size.')
parser.add_argument('--conf-thres', type=float, default=0.4, help='confidence threshold for inference.')
parser.add_argument('--iou-thres', type=float, default=0.45, help='NMS IoU threshold for inference.')
parser.add_argument('--max-det', type=int, default=1000, help='maximal inferences per image.')
Expand Down

0 comments on commit 639939f

Please sign in to comment.