Instructions to use keya254/EO-Model-Prithvi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TerraTorch
How to use keya254/EO-Model-Prithvi with TerraTorch:
from terratorch.registry import BACKBONE_REGISTRY model = BACKBONE_REGISTRY.build("keya254/EO-Model-Prithvi") - Notebooks
- Google Colab
- Kaggle
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: terratorch
|
| 3 |
+
tags:
|
| 4 |
+
- remote-sensing
|
| 5 |
+
- crop-classification
|
| 6 |
+
- prithvi
|
| 7 |
+
- semantic-segmentation
|
| 8 |
+
- terratorch
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Prithvi-EO-2.0-300M crop classification baseline
|
| 13 |
+
|
| 14 |
+
Fine-tuned **Prithvi-EO-2.0-300M-TL** with a UperNet decoder on the public
|
| 15 |
+
IBM/NASA multi-temporal crop classification dataset (13 classes, 6 HLS bands,
|
| 16 |
+
3 dates, 30 m). Trained for 30 epochs on a single NVIDIA A10G via Modal.
|
| 17 |
+
|
| 18 |
+
## Results (validation split)
|
| 19 |
+
|
| 20 |
+
| Metric | Epoch 19 | Epoch 29 |
|
| 21 |
+
| --- | --- | --- |
|
| 22 |
+
| Loss | 1.316 | 1.242 |
|
| 23 |
+
| mIoU | 0.330 | **0.335** |
|
| 24 |
+
| F1 | 0.493 | **0.499** |
|
| 25 |
+
| Pixel accuracy | 0.505 | **0.508** |
|
| 26 |
+
|
| 27 |
+
## Files
|
| 28 |
+
|
| 29 |
+
- `multicrop_300m_tl/version_0/checkpoints/epoch=29.ckpt` - full Lightning checkpoint
|
| 30 |
+
- `multicrop_300m_tl/version_0/checkpoints/epoch=29_state_dict.ckpt` - model weights only
|
| 31 |
+
- `multicrop_300m_tl/version_0/*.yaml` - resolved training config
|
| 32 |
+
- `multicrop_300m_tl/version_0/events.out.tfevents.*` - TensorBoard logs
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from terratorch.tasks import SemanticSegmentationTask
|
| 38 |
+
|
| 39 |
+
task = SemanticSegmentationTask.load_from_checkpoint(
|
| 40 |
+
"multicrop_300m_tl/version_0/checkpoints/epoch=29.ckpt",
|
| 41 |
+
map_location="cpu",
|
| 42 |
+
)
|
| 43 |
+
model = task.model.eval()
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Reproduce with the training code: https://github.com/keya254/EO-Model-Prithvi
|