blumenstiel commited on
Commit
f36ac64
·
verified ·
1 Parent(s): 71db7d0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -9
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 with:
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 "data/S2L2A*.tar" --local-dir data/ImpactMesh-Flood
 
 
 
 
 
 
 
 
 
 
 
 
40
  ```
41
 
42
- Untar the samples with:
43
  ```shell
44
- tar -xf data/ImpactMesh-Flood/data/S2L2A_1.tar -C data/ImpactMesh-Flood/data
45
- tar -xf data/ImpactMesh-Flood/data/S2L2A_2.tar -C data/ImpactMesh-Flood/data
46
- tar -xf data/ImpactMesh-Flood/data/S2L2A_3.tar -C data/ImpactMesh-Flood/data
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.