Datasets:
Duplicate from IGNF/FLAIR-1-2
Browse filesCo-authored-by: Anatol Garioud <AGarioud@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +56 -0
- README.md +379 -0
- aux-data/flair-2_centroids_sp_to_patch.json +0 -0
- aux-data/flair_aerial_metadata.json +3 -0
- aux-data/load_data.py +111 -0
- data/flair#1-test/D012_2019.zip +3 -0
- data/flair#1-test/D022_2021.zip +3 -0
- data/flair#1-test/D026_2020.zip +3 -0
- data/flair#1-test/D064_2021.zip +3 -0
- data/flair#1-test/D068_2021.zip +3 -0
- data/flair#1-test/D071_2020.zip +3 -0
- data/flair#1-test/D075_2021.zip +3 -0
- data/flair#1-test/D076_2019.zip +3 -0
- data/flair#1-test/D083_2020.zip +3 -0
- data/flair#1-test/D085_2019.zip +3 -0
- data/flair#2-test/D015_2020.zip +3 -0
- data/flair#2-test/D022_2021.zip +3 -0
- data/flair#2-test/D026_2020.zip +3 -0
- data/flair#2-test/D036_2020.zip +3 -0
- data/flair#2-test/D061_2020.zip +3 -0
- data/flair#2-test/D064_2021.zip +3 -0
- data/flair#2-test/D068_2021.zip +3 -0
- data/flair#2-test/D069_2020.zip +3 -0
- data/flair#2-test/D071_2020.zip +3 -0
- data/flair#2-test/D084_2021.zip +3 -0
- data/train-val/D004_2021.zip +3 -0
- data/train-val/D006_2020.zip +3 -0
- data/train-val/D007_2020.zip +3 -0
- data/train-val/D008_2019.zip +3 -0
- data/train-val/D009_2019.zip +3 -0
- data/train-val/D013_2020.zip +3 -0
- data/train-val/D014_2020.zip +3 -0
- data/train-val/D016_2020.zip +3 -0
- data/train-val/D017_2018.zip +3 -0
- data/train-val/D021_2020.zip +3 -0
- data/train-val/D023_2020.zip +3 -0
- data/train-val/D029_2021.zip +3 -0
- data/train-val/D030_2021.zip +3 -0
- data/train-val/D031_2019.zip +3 -0
- data/train-val/D032_2019.zip +3 -0
- data/train-val/D033_2021.zip +3 -0
- data/train-val/D034_2021.zip +3 -0
- data/train-val/D035_2020.zip +3 -0
- data/train-val/D038_2021.zip +3 -0
- data/train-val/D041_2021.zip +3 -0
- data/train-val/D044_2020.zip +3 -0
- data/train-val/D046_2019.zip +3 -0
- data/train-val/D049_2020.zip +3 -0
- data/train-val/D051_2019.zip +3 -0
- data/train-val/D052_2019.zip +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
flair_aerial_metadata.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: etalab-2.0
|
| 3 |
+
pretty_name: French Land Cover from Aerospace Imagery
|
| 4 |
+
size_categories:
|
| 5 |
+
- 10B<n<100B
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-segmentation
|
| 8 |
+
tags:
|
| 9 |
+
- IGN
|
| 10 |
+
- Aerial
|
| 11 |
+
- Satellite
|
| 12 |
+
- Environement
|
| 13 |
+
- Multimodal
|
| 14 |
+
- Earth Observation
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Dataset Card for FLAIR land-cover semantic segmentation
|
| 18 |
+
|
| 19 |
+
## Context & Data
|
| 20 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 21 |
+
The hereby FLAIR (#1 and #2) dataset is sampled countrywide and is composed of over 20 billion annotated pixels of very high resolution aerial imagery at 0.2 m spatial resolution, acquired over three years and different months (spatio-temporal domains).
|
| 22 |
+
Aerial imagery patches consist of 5 channels (RVB-Near Infrared-Elevation) and have corresponding annotation (with 19 semantic classes or 13 for the baselines).
|
| 23 |
+
Furthermore, to integrate broader spatial context and temporal information, high resolution Sentinel-2 satellite 1-year time series with 10 spectral band are also provided.
|
| 24 |
+
More than 50,000 Sentinel-2 acquisitions with 10 m spatial resolution are available.
|
| 25 |
+
<br>
|
| 26 |
+
|
| 27 |
+
The dataset covers 55 distinct spatial domains, encompassing 974 areas spanning 980 km². This dataset provides a robust foundation for advancing land cover mapping techniques.
|
| 28 |
+
We sample two test sets based on different input data and focus on semantic classes. The first test set (flair#1-test) uses very high resolution aerial imagery only and samples primarily anthropized land cover classes.
|
| 29 |
+
In contrast, the second test set (flair#2-test) combines aerial and satellite imagery and has more natural classes with temporal variations represented.<br><br>
|
| 30 |
+
|
| 31 |
+
<style type="text/css">
|
| 32 |
+
.tg {border-collapse:collapse;border-spacing:0;}
|
| 33 |
+
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:13px;
|
| 34 |
+
overflow:hidden;padding:2px 5px;word-break:normal;}
|
| 35 |
+
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:13px;
|
| 36 |
+
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
|
| 37 |
+
.tg .tg-km2t{border-color:#ffffff;font-weight:bold;text-align:left;vertical-align:top}
|
| 38 |
+
.tg .tg-rime{background-color:#E4DF7C;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 39 |
+
.tg .tg-r3rw{background-color:#a97101;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 40 |
+
.tg .tg-zv4m{border-color:#ffffff;text-align:left;vertical-align:top}
|
| 41 |
+
.tg .tg-nto1{background-color:#000000;border-color:inherit;text-align:left;vertical-align:top}
|
| 42 |
+
.tg .tg-9efv{background-color:#938e7b;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 43 |
+
.tg .tg-8jgo{border-color:#ffffff;text-align:center;vertical-align:top}
|
| 44 |
+
.tg .tg-b45e{background-color:#194A26;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 45 |
+
.tg .tg-9xgv{background-color:#1553ae;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 46 |
+
.tg .tg-3m6m{background-color:#f80c00;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 47 |
+
.tg .tg-2e1p{background-color:#db0e9a;border-color:#ffffff;color:#db0e9a;text-align:left;vertical-align:top}
|
| 48 |
+
.tg .tg-l5fa{background-color:#FFF30D;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 49 |
+
.tg .tg-2cns{background-color:#3DE6EB;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 50 |
+
.tg .tg-jjsp{background-color:#FFF;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 51 |
+
.tg .tg-2w6m{background-color:#8AB3A0;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 52 |
+
.tg .tg-nla7{background-color:#6B714F;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 53 |
+
.tg .tg-qg2z{background-color:#46E483;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 54 |
+
.tg .tg-nv8o{background-color:#C5DC42;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 55 |
+
.tg .tg-grz5{background-color:#F3A60D;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 56 |
+
.tg .tg-bja1{background-color:#99F;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 57 |
+
.tg .tg-69kt{background-color:#660082;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 58 |
+
.tg .tg-r1r4{background-color:#5F0;border-color:#ffffff;text-align:left;vertical-align:top}
|
| 59 |
+
</style>
|
| 60 |
+
<table class="tg">
|
| 61 |
+
<thead>
|
| 62 |
+
<tr>
|
| 63 |
+
<th class="tg-zv4m"></th>
|
| 64 |
+
<th class="tg-zv4m">Class</th>
|
| 65 |
+
<th class="tg-8jgo">Train/val (%)</th>
|
| 66 |
+
<th class="tg-8jgo">Test flair#1 (%)</th>
|
| 67 |
+
<th class="tg-8jgo">Test flair#2 (%)</th>
|
| 68 |
+
<th class="tg-zv4m"></th>
|
| 69 |
+
<th class="tg-zv4m">Class</th>
|
| 70 |
+
<th class="tg-8jgo">Train/val (%)</th>
|
| 71 |
+
<th class="tg-8jgo">Test flair#1 (%)</th>
|
| 72 |
+
<th class="tg-8jgo">Test flair#2 (%)</th>
|
| 73 |
+
</tr>
|
| 74 |
+
</thead>
|
| 75 |
+
<tbody>
|
| 76 |
+
<tr>
|
| 77 |
+
<td class="tg-2e1p"></td>
|
| 78 |
+
<td class="tg-km2t">(1) Building</td>
|
| 79 |
+
<td class="tg-8jgo">8.14</td>
|
| 80 |
+
<td class="tg-8jgo">8.6</td>
|
| 81 |
+
<td class="tg-8jgo">3.26</td>
|
| 82 |
+
<td class="tg-l5fa"></td>
|
| 83 |
+
<td class="tg-km2t">(11) Agricultural Land</td>
|
| 84 |
+
<td class="tg-8jgo">10.98</td>
|
| 85 |
+
<td class="tg-8jgo">6.95</td>
|
| 86 |
+
<td class="tg-8jgo">18.19</td>
|
| 87 |
+
</tr>
|
| 88 |
+
<tr>
|
| 89 |
+
<td class="tg-9efv"></td>
|
| 90 |
+
<td class="tg-km2t">(2) Pervious surface</td>
|
| 91 |
+
<td class="tg-8jgo">8.25</td>
|
| 92 |
+
<td class="tg-8jgo">7.34</td>
|
| 93 |
+
<td class="tg-8jgo">3.82</td>
|
| 94 |
+
<td class="tg-rime"></td>
|
| 95 |
+
<td class="tg-km2t">(12) Plowed land</td>
|
| 96 |
+
<td class="tg-8jgo">3.88</td>
|
| 97 |
+
<td class="tg-8jgo">2.25</td>
|
| 98 |
+
<td class="tg-8jgo">1.81</td>
|
| 99 |
+
</tr>
|
| 100 |
+
<tr>
|
| 101 |
+
<td class="tg-3m6m"></td>
|
| 102 |
+
<td class="tg-km2t">(3) Impervious surface</td>
|
| 103 |
+
<td class="tg-8jgo">13.72</td>
|
| 104 |
+
<td class="tg-8jgo">14.98</td>
|
| 105 |
+
<td class="tg-8jgo">5.87</td>
|
| 106 |
+
<td class="tg-2cns"></td>
|
| 107 |
+
<td class="tg-km2t">(13) Swimming pool</td>
|
| 108 |
+
<td class="tg-8jgo">0.01</td>
|
| 109 |
+
<td class="tg-8jgo">0.04</td>
|
| 110 |
+
<td class="tg-8jgo">0.02</td>
|
| 111 |
+
</tr>
|
| 112 |
+
<tr>
|
| 113 |
+
<td class="tg-r3rw"></td>
|
| 114 |
+
<td class="tg-km2t">(4) Bare soil</td>
|
| 115 |
+
<td class="tg-8jgo">3.47</td>
|
| 116 |
+
<td class="tg-8jgo">4.36</td>
|
| 117 |
+
<td class="tg-8jgo">1.6</td>
|
| 118 |
+
<td class="tg-jjsp"></td>
|
| 119 |
+
<td class="tg-km2t">(14) Snow</td>
|
| 120 |
+
<td class="tg-8jgo">0.15</td>
|
| 121 |
+
<td class="tg-8jgo">-</td>
|
| 122 |
+
<td class="tg-8jgo">-</td>
|
| 123 |
+
</tr>
|
| 124 |
+
<tr>
|
| 125 |
+
<td class="tg-9xgv"></td>
|
| 126 |
+
<td class="tg-km2t">(5) Water</td>
|
| 127 |
+
<td class="tg-8jgo">4.88</td>
|
| 128 |
+
<td class="tg-8jgo">5.98</td>
|
| 129 |
+
<td class="tg-8jgo">3.17</td>
|
| 130 |
+
<td class="tg-2w6m"></td>
|
| 131 |
+
<td class="tg-km2t">(15) Clear cut</td>
|
| 132 |
+
<td class="tg-8jgo">0.15</td>
|
| 133 |
+
<td class="tg-8jgo">0.01</td>
|
| 134 |
+
<td class="tg-8jgo">0.82</td>
|
| 135 |
+
</tr>
|
| 136 |
+
<tr>
|
| 137 |
+
<td class="tg-b45e"></td>
|
| 138 |
+
<td class="tg-km2t">(6) Coniferous</td>
|
| 139 |
+
<td class="tg-8jgo">2.74</td>
|
| 140 |
+
<td class="tg-8jgo">2.39</td>
|
| 141 |
+
<td class="tg-8jgo">10.24</td>
|
| 142 |
+
<td class="tg-nla7"></td>
|
| 143 |
+
<td class="tg-km2t">(16) Mixed</td>
|
| 144 |
+
<td class="tg-8jgo">0.05</td>
|
| 145 |
+
<td class="tg-8jgo">-</td>
|
| 146 |
+
<td class="tg-8jgo">0.12</td>
|
| 147 |
+
</tr>
|
| 148 |
+
<tr>
|
| 149 |
+
<td class="tg-qg2z"></td>
|
| 150 |
+
<td class="tg-km2t">(7) Deciduous</td>
|
| 151 |
+
<td class="tg-8jgo">15.38</td>
|
| 152 |
+
<td class="tg-8jgo">13.91</td>
|
| 153 |
+
<td class="tg-8jgo">24.79</td>
|
| 154 |
+
<td class="tg-nv8o"></td>
|
| 155 |
+
<td class="tg-km2t">(17) Ligneous</td>
|
| 156 |
+
<td class="tg-8jgo">0.01</td>
|
| 157 |
+
<td class="tg-8jgo">0.03</td>
|
| 158 |
+
<td class="tg-8jgo">-</td>
|
| 159 |
+
</tr>
|
| 160 |
+
<tr>
|
| 161 |
+
<td class="tg-grz5"></td>
|
| 162 |
+
<td class="tg-km2t">(8) Brushwood</td>
|
| 163 |
+
<td class="tg-8jgo">6.95</td>
|
| 164 |
+
<td class="tg-8jgo">6.91</td>
|
| 165 |
+
<td class="tg-8jgo">3.81</td>
|
| 166 |
+
<td class="tg-bja1"></td>
|
| 167 |
+
<td class="tg-km2t">(18) Greenhouse</td>
|
| 168 |
+
<td class="tg-8jgo">0.12</td>
|
| 169 |
+
<td class="tg-8jgo">0.2</td>
|
| 170 |
+
<td class="tg-8jgo">0.15</td>
|
| 171 |
+
</tr>
|
| 172 |
+
<tr>
|
| 173 |
+
<td class="tg-69kt"></td>
|
| 174 |
+
<td class="tg-km2t">(9) Vineyard</td>
|
| 175 |
+
<td class="tg-8jgo">3.13</td>
|
| 176 |
+
<td class="tg-8jgo">3.87</td>
|
| 177 |
+
<td class="tg-8jgo">2.55</td>
|
| 178 |
+
<td class="tg-nto1"></td>
|
| 179 |
+
<td class="tg-km2t">(19) Other</td>
|
| 180 |
+
<td class="tg-8jgo">0.14</td>
|
| 181 |
+
<td class="tg-8jgo">0.-</td>
|
| 182 |
+
<td class="tg-8jgo">0.04</td>
|
| 183 |
+
</tr>
|
| 184 |
+
<tr>
|
| 185 |
+
<td class="tg-r1r4"></td>
|
| 186 |
+
<td class="tg-km2t">(10) Herbaceous vegetation</td>
|
| 187 |
+
<td class="tg-8jgo">17.84</td>
|
| 188 |
+
<td class="tg-8jgo">22.17</td>
|
| 189 |
+
<td class="tg-8jgo">19.76</td>
|
| 190 |
+
<td class="tg-zv4m"></td>
|
| 191 |
+
<td class="tg-zv4m"></td>
|
| 192 |
+
<td class="tg-zv4m"></td>
|
| 193 |
+
<td class="tg-zv4m"></td>
|
| 194 |
+
</tr>
|
| 195 |
+
</tbody>
|
| 196 |
+
</table>
|
| 197 |
+
|
| 198 |
+
<br><br>
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
## Dataset Structure
|
| 202 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 203 |
+
The FLAIR dataset consists of a total of 93 462 patches: 61 712 patches for the train/val dataset, 15 700 patches for flair#1-test and 16 050 patches for flair#2-test.
|
| 204 |
+
|
| 205 |
+
Each patch includes a high-resolution aerial image (512x512) at 0.2 m, a yearly satellite image time series (40x40 by default by wider areas are provided) with a spatial resolution of 10 m
|
| 206 |
+
and associated cloud and snow masks (available in train/val and flair#2-test), and pixel-precise elevation and land cover annotations at 0.2 m resolution (512x512).
|
| 207 |
+
|
| 208 |
+
<p align="center"><img src="flair-patches.png" alt="" style="width:70%;max-width:600px;"/></p><br>
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
### Band order
|
| 212 |
+
|
| 213 |
+
<div style="display: flex;">
|
| 214 |
+
<div style="width: 15%;margin-right: 1;"">
|
| 215 |
+
Aerial
|
| 216 |
+
<ul>
|
| 217 |
+
<li>1. Red</li>
|
| 218 |
+
<li>2. Green</li>
|
| 219 |
+
<li>3. Blue</li>
|
| 220 |
+
<li>4. NIR</li>
|
| 221 |
+
<li>5. nDSM</li>
|
| 222 |
+
</ul>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div style="width: 25%;">
|
| 226 |
+
Satellite
|
| 227 |
+
<ul>
|
| 228 |
+
<li>1. Blue (B2 490nm)</li>
|
| 229 |
+
<li>2. Green (B3 560nm)</li>
|
| 230 |
+
<li>3. Red (B4 665nm)</li>
|
| 231 |
+
<li>4. Red-Edge (B5 705nm)</li>
|
| 232 |
+
<li>5. Red-Edge2 (B6 470nm)</li>
|
| 233 |
+
<li>6. Red-Edge3 (B7 783nm)</li>
|
| 234 |
+
<li>7. NIR (B8 842nm)</li>
|
| 235 |
+
<li>8. NIR-Red-Edge (B8a 865nm)</li>
|
| 236 |
+
<li>9. SWIR (B11 1610nm)</li>
|
| 237 |
+
<li>10. SWIR2 (B12 2190nm)</li>
|
| 238 |
+
</ul>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
</div>
|
| 242 |
+
|
| 243 |
+
### Annotations
|
| 244 |
+
Each pixel has been manually annotated by photo-interpretation of the 20 cm resolution aerial imagery, carried out by a team supervised by geography experts from the IGN.
|
| 245 |
+
Movable objects like cars or boats are annotated according to their underlying cover.
|
| 246 |
+
|
| 247 |
+
### Data Splits
|
| 248 |
+
The dataset is made up of 55 distinct spatial domains, aligned with the administrative boundaries of the French départements.
|
| 249 |
+
For our experiments, we designate 32 domains for training, 8 for validation, and reserve 10 official test sets for flair#1-test and flair#2-test.
|
| 250 |
+
It can also be noted that some domains are common in the flair#1-test and flair#2-test datasets but cover different areas within the domain.
|
| 251 |
+
This arrangement ensures a balanced distribution of semantic classes, radiometric attributes, bioclimatic conditions, and acquisition times across each set.
|
| 252 |
+
Consequently, every split accurately reflects the landscape diversity inherent to metropolitan France.
|
| 253 |
+
It is important to mention that the patches come with meta-data permitting alternative splitting schemes.
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
Official domain split: <br/>
|
| 257 |
+
|
| 258 |
+
<div style="display: flex; flex-wrap: nowrap; align-items: center">
|
| 259 |
+
<div style="flex: 40%;">
|
| 260 |
+
<img src="flair-splits.png" alt="flair-splits">
|
| 261 |
+
</div>
|
| 262 |
+
|
| 263 |
+
<div style="flex: 60%; margin: auto;"">
|
| 264 |
+
<table border="1">
|
| 265 |
+
<tr>
|
| 266 |
+
<th><font color="#c7254e">TRAIN:</font></th>
|
| 267 |
+
<td>D006, D007, D008, D009, D013, D016, D017, D021, D023, D030, D032, D033, D034, D035, D038, D041, D044, D046, D049, D051, D052, D055, D060, D063, D070, D072, D074, D078, D080, D081, D086, D091</td>
|
| 268 |
+
</tr>
|
| 269 |
+
<tr>
|
| 270 |
+
<th><font color="#c7254e">VALIDATION:</font></th>
|
| 271 |
+
<td>D004, D014, D029, D031, D058, D066, D067, D077</td>
|
| 272 |
+
</tr>
|
| 273 |
+
<tr>
|
| 274 |
+
<th><font color="#c7254e">TEST-flair#1:</font></th>
|
| 275 |
+
<td>D012, D022, D026, D064, D068, D071, D075, D076, D083, D085</td>
|
| 276 |
+
</tr>
|
| 277 |
+
<tr>
|
| 278 |
+
<th><font color="#c7254e">TEST-flair#2:</font></th>
|
| 279 |
+
<td>D015, D022, D026, D036, D061, D064, D068, D069, D071, D084</td>
|
| 280 |
+
</tr>
|
| 281 |
+
</table>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<br><br>
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
## Baseline code
|
| 289 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 290 |
+
<br>
|
| 291 |
+
|
| 292 |
+
### Flair #1 (aerial only)
|
| 293 |
+
A U-Net architecture with a pre-trained ResNet34 encoder from the pytorch segmentation models library is used for the baselines.
|
| 294 |
+
The used architecture allows integration of patch-wise metadata information and employs commonly used image data augmentation techniques.
|
| 295 |
+
|
| 296 |
+
Flair#1 code repository 📁 : https://github.com/IGNF/FLAIR-1<br/>
|
| 297 |
+
Link to the paper : https://arxiv.org/pdf/2211.12979.pdf <br>
|
| 298 |
+
|
| 299 |
+
Please include a citation to the following article if you use the FLAIR#1 dataset:
|
| 300 |
+
|
| 301 |
+
```
|
| 302 |
+
@article{ign2022flair1,
|
| 303 |
+
doi = {10.13140/RG.2.2.30183.73128/1},
|
| 304 |
+
url = {https://arxiv.org/pdf/2211.12979.pdf},
|
| 305 |
+
author = {Garioud, Anatol and Peillet, Stéphane and Bookjans, Eva and Giordano, Sébastien and Wattrelos, Boris},
|
| 306 |
+
title = {FLAIR #1: semantic segmentation and domain adaptation dataset},
|
| 307 |
+
publisher = {arXiv},
|
| 308 |
+
year = {2022}
|
| 309 |
+
}
|
| 310 |
+
```
|
| 311 |
+
<br>
|
| 312 |
+
|
| 313 |
+
### Flair #2 (aerial and satellite)
|
| 314 |
+
We propose the U-T&T model, a two-branch architecture that combines spatial and temporal information from very high-resolution aerial images and high-resolution satellite images into a single output. The U-Net architecture is employed for the spatial/texture branch, using a ResNet34 backbone model pre-trained on ImageNet. For the spatio-temporal branch,
|
| 315 |
+
the U-TAE architecture incorporates a Temporal self-Attention Encoder (TAE) to explore the spatial and temporal characteristics of the Sentinel-2 time series data,
|
| 316 |
+
applying attention masks at different resolutions during decoding. This model allows for the fusion of learned information from both sources,
|
| 317 |
+
enhancing the representation of mono-date and time series data.
|
| 318 |
+
|
| 319 |
+
U-T&T code repository 📁 : https://github.com/IGNF/FLAIR-2<br/>
|
| 320 |
+
Link to the paper : https://arxiv.org/abs/2310.13336 <br>
|
| 321 |
+
|
| 322 |
+
<th><font color="#c7254e"><b>IMPORTANT!</b></font></th> <b>The structure of the current dataset differs from the one that comes with the GitHub repository.</b>
|
| 323 |
+
To work with the current dataset, you need to replace the <font color=‘#D7881C’><em>src/load_data.py</em></font> file with the one provided in aux-data.
|
| 324 |
+
You also need to add the following lines to the <font color=‘#D7881C’><em>flair-2-config.yml</em></font> file under the <em><b>data</b></em> tag: <br>
|
| 325 |
+
|
| 326 |
+
```
|
| 327 |
+
HF_data_path : " " # Path to unzipped FLAIR HF dataset
|
| 328 |
+
domains_train : ["D006_2020","D007_2020","D008_2019","D009_2019","D013_2020","D016_2020","D017_2018","D021_2020","D023_2020","D030_2021","D032_2019","D033_2021","D034_2021","D035_2020","D038_2021","D041_2021","D044_2020","D046_2019","D049_2020","D051_2019","D052_2019","D055_2018","D060_2021","D063_2019","D070_2020","D072_2019","D074_2020","D078_2021","D080_2021","D081_2020","D086_2020","D091_2021"]
|
| 329 |
+
domains_val : ["D004_2021","D014_2020","D029_2021","D031_2019","D058_2020","D066_2021","D067_2021","D077_2021"]
|
| 330 |
+
domains_test : ["D015_2020","D022_2021","D026_2020","D036_2020","D061_2020","D064_2021","D068_2021","D069_2020","D071_2020","D084_2021"]
|
| 331 |
+
```
|
| 332 |
+
<br>
|
| 333 |
+
Please include a citation to the following article if you use the FLAIR#2 dataset:
|
| 334 |
+
|
| 335 |
+
```
|
| 336 |
+
@inproceedings{garioud2023flair,
|
| 337 |
+
title={FLAIR: a Country-Scale Land Cover Semantic Segmentation Dataset From Multi-Source Optical Imagery},
|
| 338 |
+
author={Anatol Garioud and Nicolas Gonthier and Loic Landrieu and Apolline De Wit and Marion Valette and Marc Poupée and Sébastien Giordano and Boris Wattrelos},
|
| 339 |
+
year={2023},
|
| 340 |
+
booktitle={Advances in Neural Information Processing Systems (NeurIPS) 2023},
|
| 341 |
+
doi={https://doi.org/10.48550/arXiv.2310.13336},
|
| 342 |
+
}
|
| 343 |
+
```
|
| 344 |
+
<br>
|
| 345 |
+
|
| 346 |
+
## CodaLab challenges
|
| 347 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 348 |
+
|
| 349 |
+
The FLAIR dataset was used for two challenges organized by IGN in 2023 on the CodaLab platform.<br>
|
| 350 |
+
Challenge FLAIR#1 : https://codalab.lisn.upsaclay.fr/competitions/8769 <br>
|
| 351 |
+
Challenge FLAIR#2 : https://codalab.lisn.upsaclay.fr/competitions/13447 <br>
|
| 352 |
+
|
| 353 |
+
flair#1-test | The podium:
|
| 354 |
+
🥇 businiao - 0.65920
|
| 355 |
+
🥈 Breizhchess - 0.65600
|
| 356 |
+
🥉 wangzhiyu918 - 0.64930
|
| 357 |
+
|
| 358 |
+
flair#2-test | The podium:
|
| 359 |
+
🥇 strakajk - 0.64130
|
| 360 |
+
🥈 Breizhchess - 0.63550
|
| 361 |
+
🥉 qwerty64 - 0.63510
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
## Acknowledgment
|
| 365 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 366 |
+
This work was performed using HPC/AI resources from GENCI-IDRIS (Grant 2022-A0131013803). This work was supported by the project "Copernicus / FPCUP” of the European Union, by the French Space Agency (CNES) and by Connect by CNES.<br>
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
## Contact
|
| 370 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 371 |
+
If you have any questions, issues or feedback, you can contact us at: <b>flair@ign.fr</b>
|
| 372 |
+
<br>
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
## Dataset license
|
| 376 |
+
<hr style='margin-top:-1em; margin-bottom:0' />
|
| 377 |
+
The "OPEN LICENCE 2.0/LICENCE OUVERTE" is a license created by the French government specifically for the purpose of facilitating the dissemination of open data by public administration.<br/>
|
| 378 |
+
This licence is governed by French law.<br/>
|
| 379 |
+
This licence has been designed to be compatible with any free licence that at least requires an acknowledgement of authorship, and specifically with the previous version of this licence as well as with the following licences: United Kingdom’s “Open Government Licence” (OGL), Creative Commons’ “Creative Commons Attribution” (CC-BY) and Open Knowledge Foundation’s “Open Data Commons Attribution” (ODC-BY).
|
aux-data/flair-2_centroids_sp_to_patch.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
aux-data/flair_aerial_metadata.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdddb35d2eaeecf1096f1a1e4e9b52ab6084e4d609bd57a5de95d8f063c45287
|
| 3 |
+
size 20451525
|
aux-data/load_data.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def load_data (config: dict):
|
| 2 |
+
|
| 3 |
+
def get_data_paths(config: dict, path_domains: str, paths_data: dict, matching_dict: dict) -> dict:
|
| 4 |
+
|
| 5 |
+
#### return data paths
|
| 6 |
+
def list_items(path, filter):
|
| 7 |
+
for path in Path(path).rglob(filter):
|
| 8 |
+
yield path.resolve().as_posix()
|
| 9 |
+
|
| 10 |
+
## data paths dict
|
| 11 |
+
data = {'PATH_IMG':[], 'PATH_SP_DATA':[], 'SP_COORDS':[], 'PATH_SP_DATES':[], 'PATH_SP_MASKS':[], 'PATH_LABELS':[], 'MTD_AERIAL':[]}
|
| 12 |
+
for domain in path_domains:
|
| 13 |
+
aerial = sorted(list(list_items(Path(path_data)/domain, 'IMG*.tif')), key=lambda x: int(x.split('_')[-1][:-4]))
|
| 14 |
+
sen2sp = sorted(list(list_items(Path(path_data)/domain, '*data.npy')))
|
| 15 |
+
sprods = sorted(list(list_items(Path(path_data)/domain, '*products.txt')))
|
| 16 |
+
smasks = sorted(list(list_items(Path(path_data)/domain, '*masks.npy')))
|
| 17 |
+
labels = sorted(list(list_items(Path(path_data)/domain, 'MSK*.tif')), key=lambda x: int(x.split('_')[-1][:-4]))
|
| 18 |
+
coords = []
|
| 19 |
+
for k in aerial:
|
| 20 |
+
coords.append(matching_dict[k.split('/')[-1]])
|
| 21 |
+
|
| 22 |
+
data['PATH_IMG'] += aerial
|
| 23 |
+
data['PATH_SP_DATA'] += sen2sp*len(aerial)
|
| 24 |
+
data['PATH_SP_DATES'] += sprods*len(aerial)
|
| 25 |
+
data['PATH_SP_MASKS'] += smasks*len(aerial)
|
| 26 |
+
data['SP_COORDS'] += coords
|
| 27 |
+
data['PATH_LABELS'] += labels
|
| 28 |
+
|
| 29 |
+
if config['aerial_metadata'] == True:
|
| 30 |
+
data = adding_encoded_metadata(config['data']['path_metadata_aerial'], data)
|
| 31 |
+
|
| 32 |
+
return data
|
| 33 |
+
|
| 34 |
+
###### READING CONFIG AND GETTING DATA PATHS
|
| 35 |
+
path_data = config['data']['HF_data_path']
|
| 36 |
+
|
| 37 |
+
train_domains, val_domains, test_domains = config['data']['domains_train'], config['data']['domains_val'], config['data']['domains_test']
|
| 38 |
+
|
| 39 |
+
with open(config['data']['path_sp_centroids'], 'r') as file:
|
| 40 |
+
matching_dict = json.load(file)
|
| 41 |
+
|
| 42 |
+
dict_train = get_data_paths(config, train_domains, path_data, matching_dict)
|
| 43 |
+
dict_val = get_data_paths(config, val_domains, path_data, matching_dict)
|
| 44 |
+
dict_test = get_data_paths(config, test_domains, path_data, matching_dict)
|
| 45 |
+
|
| 46 |
+
return dict_train, dict_val, dict_test
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def adding_encoded_metadata(path_metadata_file: str, dict_paths: dict, loc_enc_size: int = 32):
|
| 56 |
+
"""
|
| 57 |
+
For every aerial image in the dataset, get metadata, encode and add to data dict.
|
| 58 |
+
"""
|
| 59 |
+
#### encode metadata
|
| 60 |
+
def coordenc_opt(coords, enc_size=32) -> np.array:
|
| 61 |
+
d = int(enc_size/2)
|
| 62 |
+
d_i = np.arange(0, d / 2)
|
| 63 |
+
freq = 1 / (10e7 ** (2 * d_i / d))
|
| 64 |
+
|
| 65 |
+
x,y = coords[0]/10e7, coords[1]/10e7
|
| 66 |
+
enc = np.zeros(d * 2)
|
| 67 |
+
enc[0:d:2] = np.sin(x * freq)
|
| 68 |
+
enc[1:d:2] = np.cos(x * freq)
|
| 69 |
+
enc[d::2] = np.sin(y * freq)
|
| 70 |
+
enc[d + 1::2] = np.cos(y * freq)
|
| 71 |
+
return list(enc)
|
| 72 |
+
|
| 73 |
+
def norm_alti(alti: int) -> float:
|
| 74 |
+
min_alti = 0
|
| 75 |
+
max_alti = 3164.9099121094 ### MAX DATASET
|
| 76 |
+
return [(alti-min_alti) / (max_alti-min_alti)]
|
| 77 |
+
|
| 78 |
+
def format_cam(cam: str) -> np.array:
|
| 79 |
+
return [[1,0] if 'UCE' in cam else [0,1]][0]
|
| 80 |
+
|
| 81 |
+
def cyclical_enc_datetime(date: str, time: str) -> list:
|
| 82 |
+
def norm(num: float) -> float:
|
| 83 |
+
return (num-(-1))/(1-(-1))
|
| 84 |
+
year, month, day = date.split('-')
|
| 85 |
+
if year == '2018': enc_y = [1,0,0,0]
|
| 86 |
+
elif year == '2019': enc_y = [0,1,0,0]
|
| 87 |
+
elif year == '2020': enc_y = [0,0,1,0]
|
| 88 |
+
elif year == '2021': enc_y = [0,0,0,1]
|
| 89 |
+
sin_month = np.sin(2*np.pi*(int(month)-1/12)) ## months of year
|
| 90 |
+
cos_month = np.cos(2*np.pi*(int(month)-1/12))
|
| 91 |
+
sin_day = np.sin(2*np.pi*(int(day)/31)) ## max days
|
| 92 |
+
cos_day = np.cos(2*np.pi*(int(day)/31))
|
| 93 |
+
h,m=time.split('h')
|
| 94 |
+
sec_day = int(h) * 3600 + int(m) * 60
|
| 95 |
+
sin_time = np.sin(2*np.pi*(sec_day/86400)) ## total sec in day
|
| 96 |
+
cos_time = np.cos(2*np.pi*(sec_day/86400))
|
| 97 |
+
return enc_y+[norm(sin_month),norm(cos_month),norm(sin_day),norm(cos_day),norm(sin_time),norm(cos_time)]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
with open(path_metadata_file, 'r') as f:
|
| 101 |
+
metadata_dict = json.load(f)
|
| 102 |
+
for img in dict_paths['PATH_IMG']:
|
| 103 |
+
curr_img = img.split('/')[-1][:-4]
|
| 104 |
+
enc_coords = coordenc_opt([metadata_dict[curr_img]["patch_centroid_x"], metadata_dict[curr_img]["patch_centroid_y"]], enc_size=loc_enc_size)
|
| 105 |
+
enc_alti = norm_alti(metadata_dict[curr_img]["patch_centroid_z"])
|
| 106 |
+
enc_camera = format_cam(metadata_dict[curr_img]['camera'])
|
| 107 |
+
enc_temporal = cyclical_enc_datetime(metadata_dict[curr_img]['date'], metadata_dict[curr_img]['time'])
|
| 108 |
+
mtd_enc = enc_coords+enc_alti+enc_camera+enc_temporal
|
| 109 |
+
dict_paths['MTD_AERIAL'].append(mtd_enc)
|
| 110 |
+
|
| 111 |
+
return dict_paths
|
data/flair#1-test/D012_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56321c2f02a2769b9be56a23ed7f0822cd72ea9523dabd0f31248c4733a5f4c9
|
| 3 |
+
size 2314830700
|
data/flair#1-test/D022_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:089a2daa0e91ca19b54534d4d72a90a8650ffce88d924a239a660b5e265dbd66
|
| 3 |
+
size 661235030
|
data/flair#1-test/D026_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fb503966f00cb06421db64d9dae15c50f2914399ec558f4efd834bb74e4de52
|
| 3 |
+
size 2415501279
|
data/flair#1-test/D064_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0468884d8b29f119bfb645e2a95726da345b1106a12be78c589741c09e378634
|
| 3 |
+
size 2346410955
|
data/flair#1-test/D068_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7923f341118b7d7887e225743095c8f36a7c959f4faccb2cdb760b57e7cf530f
|
| 3 |
+
size 2346621554
|
data/flair#1-test/D071_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2cac8ac9bf40c4c197cb4118b9a569bf0df31a436eb101f1168cea873e52a4e
|
| 3 |
+
size 2380309367
|
data/flair#1-test/D075_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f053e9e16f717947e863749e62fa7e5130778f686f298a4912d4a42767890639
|
| 3 |
+
size 999093580
|
data/flair#1-test/D076_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b96e17356ef38081efdb29961fa2e0d840deaad41fabb6f9d2c276c4ccae0b9
|
| 3 |
+
size 2315313493
|
data/flair#1-test/D083_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d49d51c81a652a99aa0332579ece22604a61c4aeec356cd1c7576654bb04e6f7
|
| 3 |
+
size 2680311037
|
data/flair#1-test/D085_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e22387ecbe1dab858240eb382e004c9f9506363ae824954d94b06c8cd77a0f14
|
| 3 |
+
size 2314239474
|
data/flair#2-test/D015_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1673b1dc195ff37252b42a7eb26622f608f05b4df7bf1d3c97c6ddd10d2df221
|
| 3 |
+
size 2577750751
|
data/flair#2-test/D022_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f59c0b672d6c337c7c4b02dc2e05fe754342dcf1b5087aeafb18c7aeb582c4f9
|
| 3 |
+
size 2340309810
|
data/flair#2-test/D026_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7301a5d6aa0155f93b4d7bef632ee54b95317b685320976c19e51223d46993e4
|
| 3 |
+
size 3063459419
|
data/flair#2-test/D036_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82037aa5d764fca0074923171a2b38e0950f7a47a4e50478ba859740724292b0
|
| 3 |
+
size 2394983868
|
data/flair#2-test/D061_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff17eac7b197ec09df65ba513349e80f4648ab60ff23b29e1ef3aa25bc646ebf
|
| 3 |
+
size 2449827753
|
data/flair#2-test/D064_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:faa4dab091cb556a11ca58a5c944272a0d2f2618df8bfb6ea3cc1d6a5864aaab
|
| 3 |
+
size 657687981
|
data/flair#2-test/D068_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd90cdfa8d1310996218f36325f618e03158b4b0bbe8f148f27fc09dda9c81a1
|
| 3 |
+
size 824673436
|
data/flair#2-test/D069_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e988e33e692e2c0d3a97357ce365efea9195e03fa34d4a9a220319bd614ad064
|
| 3 |
+
size 2004122626
|
data/flair#2-test/D071_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33efde110b459e1959584efbb32aba679aba19fcab09c929011fb698674b1e23
|
| 3 |
+
size 2062573453
|
data/flair#2-test/D084_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b75d4cbcb34ccf27eb556d0a7d12b21f107e15c35b2ae34e8577ef452f118814
|
| 3 |
+
size 2808924472
|
data/train-val/D004_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:683b1fc39e0a94ade25151c3a836684b933f859b6c1cd5ead030ce5a18d491b2
|
| 3 |
+
size 2058367341
|
data/train-val/D006_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66f58e837577d34f85ebbab45cca6b54856c732af834f1bdb5ddbf19b87da75f
|
| 3 |
+
size 2803089151
|
data/train-val/D007_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:256946d883269d7e214a637e44c71445686ee1f0db12898694c4252690726760
|
| 3 |
+
size 2972402207
|
data/train-val/D008_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68e596986b5d50434cad9f6a8e81b50cabaddcd746be7253014dfb8deb63a8a9
|
| 3 |
+
size 2159056213
|
data/train-val/D009_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6d46e244a7d59aabafcd9a4a24e26fbbfe5512a55510af6ea2cd9c074e133b1
|
| 3 |
+
size 2546612681
|
data/train-val/D013_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fee53e0f7d4194b84b67e3ea8092890c7485918717e10ab624026764ff1cf24
|
| 3 |
+
size 2404303734
|
data/train-val/D014_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4243eb0ad5d11e228d5ce58f5329bbe9cbec9f6cd7c0eb6aba5528a4000194fc
|
| 3 |
+
size 2567318192
|
data/train-val/D016_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7dff65d9697bf320ab840524469cabe8d3e355892e5dec7d44bc015705bda014
|
| 3 |
+
size 2403653252
|
data/train-val/D017_2018.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:284d6e69f0ad63866b36b782a0712fa61422682a805feeff31e109881cdd0355
|
| 3 |
+
size 2350394676
|
data/train-val/D021_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd15731c8231d14d3e0cd80a645ac6a3f192cf29f875add433320d9934022589
|
| 3 |
+
size 1122082742
|
data/train-val/D023_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76853bbd73c00653372b928ceff4236aa16962bb2f20cf2952e8d17d0899a89c
|
| 3 |
+
size 670275541
|
data/train-val/D029_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8a6b60d78a2888861c4d56737ead680b8a45d323e8943111d4933e3bb347c3e
|
| 3 |
+
size 2243268919
|
data/train-val/D030_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:554cf9ae75ba0c5d61a47407d4591482b630559e29dd7a76c2a5248f14c7821a
|
| 3 |
+
size 1014178428
|
data/train-val/D031_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39d85060b2b7ac867ce7a65b785eadc4005b28127e5b6a9f59a1dd66506d173d
|
| 3 |
+
size 2013505047
|
data/train-val/D032_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3aa2360322f88418ade97851483989bc71076c6dfa69ece60ec8317a84ae469d
|
| 3 |
+
size 1894064857
|
data/train-val/D033_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc93c3afa2f9c934a88d684f14ee2b4885679848e8470510acdbdecea8bfb2a3
|
| 3 |
+
size 2093997939
|
data/train-val/D034_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e1c936084c39149d2fcd5516496f3c13acc8b3d4a894ecf0f1a0131859dfb3e
|
| 3 |
+
size 899647128
|
data/train-val/D035_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:118de69b94ee6a785f118f26d173e7caef04d0c2ebaa2d88abf116fb779c2e19
|
| 3 |
+
size 621182795
|
data/train-val/D038_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6caf7f512073547fd65cea3718dc4ae7425820f440d497d3e618e79f9a519bb
|
| 3 |
+
size 850465962
|
data/train-val/D041_2021.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfc7c31f196e631822c7347fdba939d23d9d9bddb4a41bf163a823db70e7796f
|
| 3 |
+
size 588144513
|
data/train-val/D044_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:169d0ee5506f0e2522bf672426cc395317e4a828a3522a53c1793eceed355ec0
|
| 3 |
+
size 2544908695
|
data/train-val/D046_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c57260591f0e7cc0c5d321ffc0b0aa2e9fe400cda01fe448dc801642aba3e470
|
| 3 |
+
size 2172744651
|
data/train-val/D049_2020.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b76b38fae58f86eb09d2d0bed65d79b5de1982b3bafbf627f0ac0c88a0a4f85
|
| 3 |
+
size 2354195743
|
data/train-val/D051_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd58e3f4769fbaba7023e11afa9697a351ed1f87f494df615dacf2cfce31ed7f
|
| 3 |
+
size 2077142883
|
data/train-val/D052_2019.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:445c3a234da9a27e13a7a10ab6dfd982116e914978ac377f96a4f149c08e3b91
|
| 3 |
+
size 1889294076
|