Skip to content
Snippets Groups Projects

Only predict on folders, no longer support single image

Merged Manon Blanco requested to merge do-not-predict-single-image into main
All threads resolved!
Files
9
@@ -25,20 +25,7 @@ def add_predict_parser(subcommands) -> None:
parser.add_argument(
"--model",
type=pathlib.Path,
help="Path to the model to use for prediction.",
required=True,
)
parser.add_argument(
"--parameters",
type=pathlib.Path,
help="Path to the YAML parameters file.",
required=True,
default="page",
)
parser.add_argument(
"--charset",
type=pathlib.Path,
help="Path to the charset file.",
help="Path to the directory containing the model, the YAML parameters file and the charset file to use for prediction.",
required=True,
)
parser.add_argument(
@@ -129,19 +116,6 @@ def add_predict_parser(subcommands) -> None:
type=int,
default=None,
)
parser.add_argument(
"--threshold-method",
help="Thresholding method.",
choices=["otsu", "simple"],
type=str,
default="otsu",
)
parser.add_argument(
"--threshold-value",
help="Thresholding value.",
type=int,
default=0,
)
parser.add_argument(
"--gpu-device",
help="Use a specific GPU if available.",
Loading