Unverified Commit 8c1c926d authored by Isotr0py's avatar Isotr0py Committed by GitHub
Browse files

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

parent df6f3ce8
...@@ -791,7 +791,9 @@ def parse_args(): ...@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment