How infinity915/aquaplants works
AqUaplanTs is a research benchmark and pipeline for high-resolution UAV aquatic-weed mapping. Its main workflow assigns source images to locked splits, tiles images and masks without crossing image-level splits, then trains and evaluates semantic segmentation models. A parallel YOLO-seg track exports polygon labels and converts predicted polygons back to dense semantic masks for comparable evaluation. The README also describes binary-to-multiclass warm-starting, a U-Net baseline, and location-held-out splits. Source evidence is partial; the README documents major capabilities, while connections not visible in excerpts are omitted.
Main entry points: sem_train.py Semantic trainer · tile_dataset.py Image tiler · export_yolo_labels.py Polygon label exporter · rasterize_yolo_to_semantic.py Semantic rasterizer
Components 22
Dataset preparation
- Aerial dataset
- Image split inventory
audit_outputs/per_image_inventory_with_split.csv - Image tiler
audit_outputs/tile_dataset.py - Image and mask tiles
Semantic benchmark
- Semantic trainer
audit_outputs/sem_train.py - Semantic specification
audit_outputs/sem_spec.py - Segmentation models
audit_outputs/sem_train.py - Compound loss
audit_outputs/sem_train.py - Baseline trainer
audit_outputs/train_semantic.py
YOLO track
- Polygon label exporter
audit_outputs/export_yolo_labels.py - YOLO polygon labels
- YOLO configurations
audit_outputs/aqua.yaml - YOLO segmentation runtime
- Tile predictions
- Semantic rasterizer
audit_outputs/rasterize_yolo_to_semantic.py
Evaluation artifacts
- Semantic metrics
audit_outputs/sem_train.py - Class taxonomy
audit_outputs/class_labels.csv - Class weights
audit_outputs/class_weights.json - Evaluated classes
audit_outputs/evaluated_classes.json - Dense predictions
- Location-held-out splits
audit_outputs/split_leave_one_location_out.json
Other components
- Researcher
Connections 26
- Researcher → Image tiler: runs preprocessing
README.md - Aerial dataset → Image tiler: supplies images
audit_outputs/tile_dataset.py - Image split inventory → Image tiler: assigns image splits
audit_outputs/tile_dataset.py - Image tiler → Image and mask tiles: writes tiles
audit_outputs/tile_dataset.py - Researcher → Semantic trainer: runs training
README.md - Image and mask tiles → Semantic trainer: loads split tiles
audit_outputs/sem_train.py - Semantic trainer → Segmentation models: builds model
audit_outputs/sem_train.py - Semantic trainer → Compound loss: optimizes with
audit_outputs/sem_train.py - Semantic trainer → Semantic metrics: evaluates predictions
audit_outputs/sem_train.py - Semantic specification → Semantic trainer: specifies design
audit_outputs/sem_spec.py - Semantic trainer → Class weights: loads weights
README.md - Semantic trainer → Evaluated classes: loads class set
audit_outputs/sem_train.py - Researcher → Polygon label exporter: runs label export
README.md - Image and mask tiles → Polygon label exporter: provides masks
audit_outputs/export_yolo_labels.py - Polygon label exporter → YOLO polygon labels: writes polygons
audit_outputs/export_yolo_labels.py - YOLO configurations → YOLO segmentation runtime: configures classes
- YOLO polygon labels → YOLO segmentation runtime: trains on labels
- YOLO segmentation runtime → Tile predictions: produces predictions
- Tile predictions → Semantic rasterizer: provides polygons
audit_outputs/rasterize_yolo_to_semantic.py - Image and mask tiles → Semantic rasterizer: provides tile offsets
audit_outputs/rasterize_yolo_to_semantic.py - Semantic rasterizer → Dense predictions: writes semantic masks
audit_outputs/rasterize_yolo_to_semantic.py - Dense predictions → Semantic metrics: enables comparison
- Researcher → Baseline trainer: runs baseline
README.md - Image and mask tiles → Baseline trainer: loads split tiles
audit_outputs/train_semantic.py - Researcher → Location-held-out splits: selects OOD split
README.md - Semantic metrics → Class taxonomy: names classes