Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
|
5 |
+
Model weights from the release at https://github.com/fieldsoftheworld/ftw-baselines/releases/tag/Pretrained-Models
|
6 |
+
|
7 |
+
The "full" models are trained on all country data in the Fields of The World dataset, while the CCBY models are trained according to the subset described [here](https://github.com/fieldsoftheworld/ftw-baselines?tab=readme-ov-file#cc-byor-equivalent-trained-models).
|
8 |
+
|
9 |
+
|
10 |
+
Example usage:
|
11 |
+
```
|
12 |
+
import segmentation_models_pytorch as smp
|
13 |
+
import torch
|
14 |
+
|
15 |
+
model = smp.Unet(
|
16 |
+
encoder_name="efficientnet-b3",
|
17 |
+
encoder_weights=None,
|
18 |
+
in_channels=8,
|
19 |
+
classes=2
|
20 |
+
)
|
21 |
+
model.load_state_dict(torch.load("ftw-2class-full_unet-efficientnetb3_rgbnir_f2444768.pth", weights_only=True))
|
22 |
+
```
|