Skip to content
Snippets Groups Projects

Input prediction folder

Merged Thibault Lavigne requested to merge input-prediction-folder into main
All threads resolved!
3 files
+ 110
38
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 13
4
@@ -14,13 +14,16 @@ def add_predict_parser(subcommands) -> None:
description=__doc__,
help=__doc__,
)
# Required arguments.
parser.add_argument(
image_or_folder_input = parser.add_mutually_exclusive_group(required=True)
image_or_folder_input.add_argument(
"--image",
type=pathlib.Path,
help="Path to the image to predict.",
required=True,
)
image_or_folder_input.add_argument(
"--image-dir",
type=pathlib.Path,
help="Path to the folder where the images to predict are stored.",
)
parser.add_argument(
"--model",
@@ -48,6 +51,12 @@ def add_predict_parser(subcommands) -> None:
required=True,
)
# Optional arguments.
parser.add_argument(
"--image-extension",
type=str,
help="The extension of the images in the folder.",
default=".jpg",
)
parser.add_argument(
"--scale",
type=float,
Loading