Harden YOLO compatibility preflight
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 01:59:00 +02:00
parent 794f1cd51e
commit 3f1a686bef
11 changed files with 170 additions and 3 deletions
+8
View File
@@ -26,8 +26,15 @@ def main() -> int:
action="store_true",
help="Skip checking installed ultralytics/torch packages; useful for validating local paths on non-AI machines.",
)
parser.add_argument(
"--check-model-load",
action="store_true",
help="Explicitly load the configured local model file to verify Ultralytics compatibility; no inference is run.",
)
parser.add_argument("--json", action="store_true", help="Print JSON output only.")
args = parser.parse_args()
if args.check_model_load and args.assume_dependencies:
parser.error("--check-model-load cannot be combined with --assume-dependencies")
settings = Settings(
yolo_enabled=args.enabled or bool(args.model_path),
@@ -38,6 +45,7 @@ def main() -> int:
settings=settings,
tile_manifest_path=args.tile_manifest_path,
assume_dependencies=args.assume_dependencies,
check_model_load=args.check_model_load,
)
if args.json: