blumenstiel commited on
Commit
98c11be
·
verified ·
1 Parent(s): 23d228e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -59
README.md CHANGED
@@ -1,59 +1,60 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- tags:
6
- - Pytorch
7
- - segmentation
8
- - Flood mapping
9
- - Sentinel-2
10
- - Geospatial
11
- - Foundation model
12
- ---
13
- ### Model and Inputs
14
- The pretrained [Prithvi-EO-2.0-300M-TL](https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-300M-TL) model is finetuned to segment the extent of floods on Sentinel-2 images from the [Sen1Floods11 dataset](https://github.com/cloudtostreet/Sen1Floods11).
15
-
16
- The dataset consists of 446 labeled 512x512 chips that span all 14 biomes, 357 ecoregions, and 6 continents of the world across 11 flood events. The benchmark associated to Sen1Floods11 provides results for fully convolutional neural networks trained in various input/labeled data setups, considering Sentinel-1 and Sentinel-2 imagery.
17
-
18
- We use the following six bands for flood mapping: Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
19
-
20
- Labels represent no water (class 0), water/flood (class 1), and no data/clouds (class -1).
21
-
22
- The Prithvi-EO-2.0-300M-TL model was initially pretrained using a sequence length of 4 timestamps. Based on the characteristics of this benchmark dataset, we focus on single-timestamp segmentation. This demonstrates that our model can be utilized with an arbitrary number of timestamps during fine-tuning.
23
-
24
- ### Fine-tuning
25
-
26
- The model was fine-tuned using [TerraTorch](https://github.com/IBM/terratorch):
27
-
28
- ```shell
29
- terratorch fit -c sen1floods11.yaml
30
- ```
31
-
32
- The configuration used for finetuning is available through this [config](https://github.com/NASA-IMPACT/Prithvi-EO-2.0/blob/main/configs/sen1floods11.yaml).
33
-
34
- ### Inference and demo
35
-
36
- A **demo** running this model is available **[here](https://huggingface.co/spaces/ibm-nasa-geospatial/Prithvi-EO-2.0-Sen1Floods11-demo)**.
37
-
38
- This repo includes an inference script that allows running the flood model for inference on Sentinel-2 L1C images.
39
-
40
- ```shell
41
- python inference.py --data_file examples/India_900498_S2Hand.tif
42
- ```
43
-
44
- ### Feedback
45
-
46
- Your feedback is invaluable to us. If you have any feedback about the model, please feel free to share it with us. You can do this by submitting issues on GitHub or start a discussion on HuggingFace.
47
-
48
- ### Citation
49
-
50
- If this model helped your research, please cite [Prithvi-EO-2.0](https://arxiv.org/abs/2412.02732) in your publications.
51
-
52
- ```
53
- @article{Prithvi-EO-V2-preprint,
54
- author = {Szwarcman, Daniela and Roy, Sujit and Fraccaro, Paolo and Gíslason, Þorsteinn Elí and Blumenstiel, Benedikt and Ghosal, Rinki and de Oliveira, Pedro Henrique and de Sousa Almeida, João Lucas and Sedona, Rocco and Kang, Yanghui and Chakraborty, Srija and Wang, Sizhe and Kumar, Ankur and Truong, Myscon and Godwin, Denys and Lee, Hyunho and Hsu, Chia-Yu and Akbari Asanjan, Ata and Mujeci, Besart and Keenan, Trevor and Arévolo, Paulo and Li, Wenwen and Alemohammad, Hamed and Olofsson, Pontus and Hain, Christopher and Kennedy, Robert and Zadrozny, Bianca and Cavallaro, Gabriele and Watson, Campbell and Maskey, Manil and Ramachandran, Rahul and Bernabe Moreno, Juan},
55
- title = {{Prithvi-EO-2.0: A Versatile Multi-Temporal Foundation Model for Earth Observation Applications}},
56
- journal = {arXiv preprint arXiv:2412.02732},
57
- year = {2024}
58
- }
59
- ```
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: terratorch
4
+ language:
5
+ - en
6
+ tags:
7
+ - Pytorch
8
+ - segmentation
9
+ - Flood mapping
10
+ - Sentinel-2
11
+ - Geospatial
12
+ - Foundation model
13
+ ---
14
+ ### Model and Inputs
15
+ The pretrained [Prithvi-EO-2.0-300M-TL](https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-300M-TL) model is finetuned to segment the extent of floods on Sentinel-2 images from the [Sen1Floods11 dataset](https://github.com/cloudtostreet/Sen1Floods11).
16
+
17
+ The dataset consists of 446 labeled 512x512 chips that span all 14 biomes, 357 ecoregions, and 6 continents of the world across 11 flood events. The benchmark associated to Sen1Floods11 provides results for fully convolutional neural networks trained in various input/labeled data setups, considering Sentinel-1 and Sentinel-2 imagery.
18
+
19
+ We use the following six bands for flood mapping: Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
20
+
21
+ Labels represent no water (class 0), water/flood (class 1), and no data/clouds (class -1).
22
+
23
+ The Prithvi-EO-2.0-300M-TL model was initially pretrained using a sequence length of 4 timestamps. Based on the characteristics of this benchmark dataset, we focus on single-timestamp segmentation. This demonstrates that our model can be utilized with an arbitrary number of timestamps during fine-tuning.
24
+
25
+ ### Fine-tuning
26
+
27
+ The model was fine-tuned using [TerraTorch](https://github.com/IBM/terratorch):
28
+
29
+ ```shell
30
+ terratorch fit -c sen1floods11.yaml
31
+ ```
32
+
33
+ The configuration used for finetuning is available through this [config](https://github.com/NASA-IMPACT/Prithvi-EO-2.0/blob/main/configs/sen1floods11.yaml).
34
+
35
+ ### Inference and demo
36
+
37
+ A **demo** running this model is available **[here](https://huggingface.co/spaces/ibm-nasa-geospatial/Prithvi-EO-2.0-Sen1Floods11-demo)**.
38
+
39
+ This repo includes an inference script that allows running the flood model for inference on Sentinel-2 L1C images.
40
+
41
+ ```shell
42
+ python inference.py --data_file examples/India_900498_S2Hand.tif
43
+ ```
44
+
45
+ ### Feedback
46
+
47
+ Your feedback is invaluable to us. If you have any feedback about the model, please feel free to share it with us. You can do this by submitting issues on GitHub or start a discussion on HuggingFace.
48
+
49
+ ### Citation
50
+
51
+ If this model helped your research, please cite [Prithvi-EO-2.0](https://arxiv.org/abs/2412.02732) in your publications.
52
+
53
+ ```
54
+ @article{Prithvi-EO-V2-preprint,
55
+ author = {Szwarcman, Daniela and Roy, Sujit and Fraccaro, Paolo and Gíslason, Þorsteinn Elí and Blumenstiel, Benedikt and Ghosal, Rinki and de Oliveira, Pedro Henrique and de Sousa Almeida, João Lucas and Sedona, Rocco and Kang, Yanghui and Chakraborty, Srija and Wang, Sizhe and Kumar, Ankur and Truong, Myscon and Godwin, Denys and Lee, Hyunho and Hsu, Chia-Yu and Akbari Asanjan, Ata and Mujeci, Besart and Keenan, Trevor and Arévolo, Paulo and Li, Wenwen and Alemohammad, Hamed and Olofsson, Pontus and Hain, Christopher and Kennedy, Robert and Zadrozny, Bianca and Cavallaro, Gabriele and Watson, Campbell and Maskey, Manil and Ramachandran, Rahul and Bernabe Moreno, Juan},
56
+ title = {{Prithvi-EO-2.0: A Versatile Multi-Temporal Foundation Model for Earth Observation Applications}},
57
+ journal = {arXiv preprint arXiv:2412.02732},
58
+ year = {2024}
59
+ }
60
+ ```