[Bugfix] Fix missing int type for -n in multi-image example (#17223)

This commit is contained in:
Isotr0py 2025-04-26 16:49:52 +08:00 committed by GitHub
parent df6f3ce883
commit 8c1c926d00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -791,7 +791,9 @@ def parse_args():
parser.add_argument( parser.add_argument(
"--num-images", "--num-images",
"-n", "-n",
choices=list(range(1, 13)), # 12 is the max number of images type=int,
choices=list(range(1,
len(IMAGE_URLS) + 1)), # the max number of images
default=2, default=2,
help="Number of images to use for the demo.") help="Number of images to use for the demo.")
return parser.parse_args() return parser.parse_args()