Update README.md
Browse files
README.md
CHANGED
|
@@ -31,22 +31,31 @@ The technical report is released soon. You find the wildfire subset here: https:
|
|
| 31 |
|
| 32 |
## Quick Start
|
| 33 |
|
| 34 |
-
Download the dataset
|
| 35 |
```shell
|
| 36 |
hf download ibm-esa-geospatial/ImpactMesh-Flood --repo-type dataset --local-dir data/ImpactMesh-Flood
|
| 37 |
|
| 38 |
# Only download a single modality (e.g., S2L2A)
|
| 39 |
-
hf download ibm-esa-geospatial/ImpactMesh-Flood --repo-type dataset --include "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
-
|
| 43 |
```shell
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
tar -xf data/ImpactMesh-Flood/data/S1RTC.tar -C data/ImpactMesh-Flood/data
|
| 48 |
-
tar -xf data/ImpactMesh-Flood/data/DEM.tar -C data/ImpactMesh-Flood/data
|
| 49 |
-
tar -xf data/ImpactMesh-Flood/data/MASK.tar -C data/ImpactMesh-Flood/data
|
| 50 |
```
|
| 51 |
|
| 52 |
We use [TerraTorch](https://terrastackai.github.io/terratorch/stable/) for the model fine-tuning and provide data modules for ImpactMesh. You can download the code and configs for the fine-tuning from https://github.com/IBM/ImpactMesh.
|
|
|
|
| 31 |
|
| 32 |
## Quick Start
|
| 33 |
|
| 34 |
+
Download the dataset:
|
| 35 |
```shell
|
| 36 |
hf download ibm-esa-geospatial/ImpactMesh-Flood --repo-type dataset --local-dir data/ImpactMesh-Flood
|
| 37 |
|
| 38 |
# Only download a single modality (e.g., S2L2A)
|
| 39 |
+
hf download ibm-esa-geospatial/ImpactMesh-Flood --repo-type dataset --include "*/S2L2A.tar" --local-dir data/ImpactMesh-Flood
|
| 40 |
+
|
| 41 |
+
# Only download a single split (e.g., validation)
|
| 42 |
+
hf download ibm-esa-geospatial/ImpactMesh-Flood --repo-type dataset --include "val/*" --local-dir data/ImpactMesh-Flood
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Untar the samples:
|
| 46 |
+
```shell
|
| 47 |
+
mkdir data/ImpactMesh-Flood/data
|
| 48 |
+
for f in data/ImpactMesh-Flood/*/*.tar; do
|
| 49 |
+
echo "Extracting $f"
|
| 50 |
+
tar -xf "$f" -C data/ImpactMesh-Flood/data
|
| 51 |
+
done
|
| 52 |
```
|
| 53 |
|
| 54 |
+
The samples from all splits are saved in shared folders `data/ImpactMesh-Flood/data/{modality}`. After extracting, you can delete the tars:
|
| 55 |
```shell
|
| 56 |
+
rm -r data/ImpactMesh-Flood/train
|
| 57 |
+
rm -r data/ImpactMesh-Flood/val
|
| 58 |
+
rm -r data/ImpactMesh-Flood/test
|
|
|
|
|
|
|
|
|
|
| 59 |
```
|
| 60 |
|
| 61 |
We use [TerraTorch](https://terrastackai.github.io/terratorch/stable/) for the model fine-tuning and provide data modules for ImpactMesh. You can download the code and configs for the fine-tuning from https://github.com/IBM/ImpactMesh.
|