Harden YOLO compatibility preflight
This commit is contained in:
@@ -72,6 +72,18 @@ The preflight checks:
|
||||
|
||||
The preflight does not load the model, does not import Ultralytics unless dependency discovery requires package metadata, does not run inference and never downloads model weights.
|
||||
|
||||
Sprint 25 adds an explicit local model compatibility smoke:
|
||||
|
||||
```bash
|
||||
python scripts/yolo_preflight.py --model-path /absolute/path/to/model.pt --tile-manifest-path /absolute/path/to/manifest.json --check-model-load --json
|
||||
```
|
||||
|
||||
`--check-model-load` requires real optional AI dependencies and an existing local
|
||||
model file. It loads that local file through the configured adapter to verify
|
||||
Ultralytics/PyTorch compatibility, but it still does not run tile prediction and
|
||||
does not download weights. It cannot be combined with `--assume-dependencies`
|
||||
because that would turn the smoke into a false positive.
|
||||
|
||||
Environment variables:
|
||||
|
||||
- `YOLO_ENABLED`
|
||||
|
||||
Reference in New Issue
Block a user