Support larger operator training samples
This commit is contained in:
+23
-5
@@ -191,6 +191,24 @@ negative-tile training. The helper fetches only the explicit documented AOIs,
|
||||
records Digitaal Vlaanderen attribution and reuses existing files by default.
|
||||
Use `--force` only when the local runtime artifacts should be regenerated.
|
||||
|
||||
For model-training candidates, prepare a larger operator-only sample manifest so
|
||||
tile overlap can create meaningful context instead of one tile per source
|
||||
raster:
|
||||
|
||||
```bash
|
||||
docker exec -it geointel python3 /app/scripts/prepare_operator_real_data_samples.py \
|
||||
--output-dir /app/storage/operator-data/operator-samples-1024 \
|
||||
--manifest-name operator_samples_manifest.json \
|
||||
--width 1024 \
|
||||
--height 1024 \
|
||||
--half-size-scale 2 \
|
||||
--force
|
||||
```
|
||||
|
||||
This keeps the same documented AOI centers but requests larger WMS rasters and a
|
||||
larger GRB reference bbox. Use the generated manifest path for the next YOLO
|
||||
tile export. The default remains 512x512 for quick smoke runs.
|
||||
|
||||
The real-data smoke is intentionally mutating and refuses to run without
|
||||
operator-supplied files. Current V1 upload support expects a georeferenced
|
||||
`.tif`, `.tiff` or `.geotiff` raster and a `.geojson` or `.json` reference
|
||||
@@ -316,13 +334,13 @@ with overlapping raster windows:
|
||||
|
||||
```bash
|
||||
docker exec -it geointel python3 /app/scripts/export_operator_yolo_tile_dataset.py \
|
||||
--manifest-path /app/storage/operator-data/operator_samples_manifest.json \
|
||||
--output-dir /app/storage/operator-data/yolo-building-tile-expanded160 \
|
||||
--tile-size 160 \
|
||||
--stride 80 \
|
||||
--manifest-path /app/storage/operator-data/operator-samples-1024/operator_samples_manifest.json \
|
||||
--output-dir /app/storage/operator-data/yolo-building-aoi1024-visible025 \
|
||||
--tile-size 512 \
|
||||
--stride 256 \
|
||||
--negative-keep-ratio 1.0 \
|
||||
--min-label-visible-ratio 0.25 \
|
||||
--val-samples turnhout,retie,kasterlee_bos \
|
||||
--val-samples turnhout,retie,westerlo,arendonk_heide \
|
||||
--force
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user