blumenstiel
commited on
Commit
•
fbae3c8
1
Parent(s):
c6c5896
Update ReadMe
Browse files- README.md +17 -8
- assets/modal_architecture.jpg +0 -0
- assets/model_architecture.png +3 -0
README.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
|
5 |
# Prithvi-EO-2.0
|
@@ -8,11 +15,13 @@ Prithvi-EO-2.0 is the second generation EO foundation model jointly developed by
|
|
8 |
|
9 |
## Architecture Overview
|
10 |
|
11 |
-
Prithvi-EO-2.0 is based on the ViT architecture,
|
12 |
|
13 |
-
![model_architecture](assets/
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
## Pre-trained Models
|
18 |
|
@@ -26,7 +35,7 @@ Our main modifications to the ViT architecture are the 3D positional embedding a
|
|
26 |
The models were pre-trained at the Julich Supercomputing Center with NASA's HLS V2 product (30m granularity) using 4.2M samples with six bands in the following order: Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
|
27 |
|
28 |
## Benchmarking
|
29 |
-
|
30 |
|
31 |
![benchmarking](assets/Overall_300M_TL.png)
|
32 |
|
@@ -41,7 +50,7 @@ python inference.py --data_files t1.tif t2.tif t3.tif t4.tif --input_indices <op
|
|
41 |
|
42 |
## Finetuning
|
43 |
|
44 |
-
You can finetune the model using [TerraTorch](https://github.com/IBM/terratorch).
|
45 |
|
46 |
### Feedback
|
47 |
|
@@ -52,9 +61,9 @@ Your feedback is invaluable to us. If you have any feedback about the model, ple
|
|
52 |
If this model helped your research, please cite `Prithvi-EO-2.0` in your publications. Here are two BibTeX entries as examples:
|
53 |
|
54 |
```
|
55 |
-
@article{Prithvi-EO-2-preprint,
|
56 |
-
author = {},
|
57 |
-
title = {{
|
58 |
journal = {arxiv},
|
59 |
year = {2024}
|
60 |
}
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- Pytorch
|
5 |
+
- Earth Observation
|
6 |
+
- Foundation Model
|
7 |
+
- NASA
|
8 |
+
- IBM
|
9 |
+
library_name: terratorch
|
10 |
---
|
11 |
|
12 |
# Prithvi-EO-2.0
|
|
|
15 |
|
16 |
## Architecture Overview
|
17 |
|
18 |
+
Prithvi-EO-2.0 is based on the ViT architecture, pretrained using a masked autoencoder (MAE) approach, with two major modifications as shown in the figure below.
|
19 |
|
20 |
+
![model_architecture](assets/model_architecture.png)
|
21 |
|
22 |
+
First, we replaced the 2D patch embeddings and 2D positional embeddings with 3D versions to support inputs with spatiotemporal characteristics, i.e., a sequence of T images of size (H, W). Our 3D patch embeddings consist of a 3D convolutional layer, dividing the 3D input into non-overlapping cubes of size (t, h, w) for time, height, and width dimensions, respectively. For the 3D positional encodings, we first generate 1D sin/cos encodings individually for each dimension and then combine them together into a single, 3D positional encoding.
|
23 |
+
|
24 |
+
Second, we considered geolocation (center latitude and longitude) and date of acquisition (year and day-of-year ranging 1-365) in pretraining. Both encoder and decoder receive time and location information for each sample and encodes them independently using 2D sin/cos encoding. They are added to the embedded tokens via a weighted sum with learned weights: one for time and one for location and separate weights for encoder and decoder. Since this metadata is often not available, we added a drop mechanism during pretraining that randomly drops the geolocation and/or the temporal data to help the model learn how to handle the absence of this information.
|
25 |
|
26 |
## Pre-trained Models
|
27 |
|
|
|
35 |
The models were pre-trained at the Julich Supercomputing Center with NASA's HLS V2 product (30m granularity) using 4.2M samples with six bands in the following order: Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
|
36 |
|
37 |
## Benchmarking
|
38 |
+
We validated the Prithvi-EO-2.0 models through extensive experiments using [GEO-bench](https://github.com/ServiceNow/geo-bench). Prithvi-EO-2.0-600M-TL outperforms the previous Prithvi-EO model by 8% across a range of tasks. It also outperforms six other geospatial foundation models when benchmarked on remote sensing tasks from different domains and resolutions (i.e. from 0.1m to 15m).
|
39 |
|
40 |
![benchmarking](assets/Overall_300M_TL.png)
|
41 |
|
|
|
50 |
|
51 |
## Finetuning
|
52 |
|
53 |
+
You can finetune the model using [TerraTorch](https://github.com/IBM/terratorch). Examples of configs and notebooks are provided in the project repository: [github.com/NASA-IMPACT/Prithvi-EO-2.0](https://github.com/NASA-IMPACT/Prithvi-EO-2.0#fine-tuning).
|
54 |
|
55 |
### Feedback
|
56 |
|
|
|
61 |
If this model helped your research, please cite `Prithvi-EO-2.0` in your publications. Here are two BibTeX entries as examples:
|
62 |
|
63 |
```
|
64 |
+
@article{Prithvi-EO-2-preprint,
|
65 |
+
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},
|
66 |
+
title = {{Prithvi-EO-2.0: A Versatile Multi-Temporal Foundation Model for Earth Observation Applications}},
|
67 |
journal = {arxiv},
|
68 |
year = {2024}
|
69 |
}
|
assets/modal_architecture.jpg
DELETED
Binary file (77.2 kB)
|
|
assets/model_architecture.png
ADDED
Git LFS Details
|