Add reusable GIS run mode and AI runtime opt-in
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-05 00:25:12 +02:00
parent f4f83c0e80
commit 8b09bee84a
23 changed files with 262 additions and 15 deletions
+20
View File
@@ -216,6 +216,17 @@ cd backend
python -m pip install -e .[ai]
```
Docker and Unraid builds keep AI dependencies disabled by default. To build an
image with local PyTorch/Ultralytics support, set:
```bash
GEOINTEL_INSTALL_AI=true
```
The default remains `false` so normal GIS deployments do not install the large AI
runtime. GeoIntel still requires an explicit local model path and never downloads
weights automatically.
Configured YOLO requires:
```bash
@@ -235,6 +246,15 @@ In Docker, run the same smoke through the backend container:
docker compose exec -T backend python scripts/yolo_preflight.py --model-path /absolute/path/to/local-model.pt --tile-manifest-path /absolute/path/to/manifest.json --check-model-load --json
```
In the all-in-one Unraid runtime, place model files under the configured models
directory, mounted as `/app/models` by default:
```bash
GEOINTEL_MODELS_PATH=/mnt/user/appdata/geointel/models
YOLO_ENABLED=true
YOLO_MODEL_PATH=/app/models/local-model.pt
```
The smoke loads only the supplied local model file, does not run inference and
does not download weights.