Datasets:
File size: 1,448 Bytes
4e6a175 490858f 4e6a175 490858f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Dataset scripts
Run these from the root directory. Use `python scripts/<name>.py --help` to see a script's options.
- `sample_dataset.py` — samples synchronized RGB and IR frames from the original videos and writes `Data/samples.csv`.
- `make_random_splits.py` — holds out one burn site for testing and writes `Data/splits.csv`, randomly selecting a 10–20% validation while keeping related flight groups together. The released `Data/splits_graminoid.csv` and `Data/splits_canopy.csv` are its output for `--test Graminoid` and `--test Canopy`.
- `filter_junk.py` — removes sampled frame pairs that fall within the unusable video ranges listed in `markdown/junk.md`. It modifies the dataset in place.
- `copy_metadata.py` — copies masks and homographies from `AnnotationHomography/` into `Data/`.
- `recover_ir.py` — creates `_recovered.png` alternatives for IR frames affected by RGB/IR blending.
- `resize_dataset.py` — downscales sampled frame pairs by 2x and adjusts homographies for efficient training.
- `make_mask_overlays.py` — draws each mask over its RGB image for quick visual inspection.
- `analyze_label_distribution.py` — calculates per-clip mask-label percentages in `annotation_label_by_clip.csv`, passing `--splits splits_graminoid.csv` (or `splits_canopy.csv`) also writes `annotation_label_by_split.csv`, released as `annotation_label_by_split_graminoid.csv` and `annotation_label_by_split_canopy.csv`. |