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
|
Download README.md from keya254/EO-Model-Prithvi: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/keya254/EO-Model-Prithvi/resolve/main/README.md
- Command line
-
hf download hf://keya254/EO-Model-Prithvi/README.md
-
curl -L -o README.md https://huggingface.co/keya254/EO-Model-Prithvi/resolve/main/README.md
1.29 kB
| library_name: terratorch | |
| tags: | |
| - remote-sensing | |
| - crop-classification | |
| - prithvi | |
| - semantic-segmentation | |
| - terratorch | |
| license: apache-2.0 | |
| # Prithvi-EO-2.0-300M crop classification baseline | |
| Fine-tuned **Prithvi-EO-2.0-300M-TL** with a UperNet decoder on the public | |
| IBM/NASA multi-temporal crop classification dataset (13 classes, 6 HLS bands, | |
| 3 dates, 30 m). Trained for 30 epochs on a single NVIDIA A10G via Modal. | |
| ## Results (validation split) | |
| | Metric | Epoch 19 | Epoch 29 | | |
| | --- | --- | --- | | |
| | Loss | 1.316 | 1.242 | | |
| | mIoU | 0.330 | **0.335** | | |
| | F1 | 0.493 | **0.499** | | |
| | Pixel accuracy | 0.505 | **0.508** | | |
| ## Files | |
| - `multicrop_300m_tl/version_0/checkpoints/epoch=29.ckpt` - full Lightning checkpoint | |
| - `multicrop_300m_tl/version_0/checkpoints/epoch=29_state_dict.ckpt` - model weights only | |
| - `multicrop_300m_tl/version_0/*.yaml` - resolved training config | |
| - `multicrop_300m_tl/version_0/events.out.tfevents.*` - TensorBoard logs | |
| ## Usage | |
| ```python | |
| from terratorch.tasks import SemanticSegmentationTask | |
| task = SemanticSegmentationTask.load_from_checkpoint( | |
| "multicrop_300m_tl/version_0/checkpoints/epoch=29.ckpt", | |
| map_location="cpu", | |
| ) | |
| model = task.model.eval() | |
| ``` | |
| Reproduce with the training code: https://github.com/keya254/EO-Model-Prithvi | |