Spaces:
Running
Running
File size: 9,004 Bytes
d827732 c7c7415 bc3a255 d827732 bc3a255 f46dfb3 d827732 b83f740 f46dfb3 18e1325 f46dfb3 18e1325 f84a083 f46dfb3 f84a083 18e1325 f84a083 18e1325 f46dfb3 b83f740 f46dfb3 10fb961 bd72de8 b83f740 f46dfb3 10fb961 b83f740 f46dfb3 b83f740 f46dfb3 f84a083 b83f740 f46dfb3 b83f740 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
---
title: README
emoji: 🌍
colorFrom: blue
colorTo: green
sdk: static
pinned: false
license: mit
short_description: Official Repository of Pretrained Models on BigEarthNet v2.0
---
[TU Berlin](https://www.tu.berlin/) | [RSiM](https://rsim.berlin/) | [DIMA](https://www.dima.tu-berlin.de/menue/database_systems_and_information_management_group/) | [BigEarth](http://www.bigearth.eu/) | [BIFOLD](https://bifold.berlin/)
:---:|:---:|:---:|:---:|:---:
<a href="https://www.tu.berlin/"><img src="https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/tu-berlin-logo-long-red.svg" style="font-size: 1rem; height: 2em; width: auto" alt="TU Berlin Logo"/> | <a href="https://rsim.berlin/"><img src="https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/RSiM_Logo_1.png" style="font-size: 1rem; height: 2em; width: auto" alt="RSiM Logo"> | <a href="https://www.dima.tu-berlin.de/menue/database_systems_and_information_management_group/"><img src="https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/DIMA.png" style="font-size: 1rem; height: 2em; width: auto" alt="DIMA Logo"> | <a href="http://www.bigearth.eu/"><img src="https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/BigEarth.png" style="font-size: 1rem; height: 2em; width: auto" alt="BigEarth Logo"> | <a href="https://bifold.berlin/"><img src="https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/BIFOLD_Logo_farbig.png" style="font-size: 1rem; height: 2em; width: auto; margin-right: 1em" alt="BIFOLD Logo">
# BigEarthNet v2.0 Pretrained Weights
We provide pretrained weights for several different models.
The weights for the best-performing model, based on the Macro Average Precision score on the recommended test split, have been uploaded.
All models have been trained using: i) Sentinel-1 data only (S1), ii) Sentinel-2 data only (S2), or iii) both Sentinel-1 and Sentinel-2 (S1+S2) modalities together.
The following bands (in the specified order) were used to train the models with version 0.2.0:
- For models using Sentinel-1 only: Sentinel-1 bands `["VV", "VH"]`
- For models using Sentinel-2 only: Sentinel-2 10m bands and 20m bands `["B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B11", "B12"]`
- For models using Sentinel-1 and Sentinel-2: Sentinel-1 bands and Sentinel-2 10m bands and 20m bands `["VV", "VH", "B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B11", "B12"]`
> **_NOTE:_** Older versions of the models have been trained with different band orders that are not compatible with the current version and do not match the order proposed in the technical documentation of Sentinel-2.
>
> The following bands (in the specified order) were used to train the models with version 0.1.1:
> - For models using Sentinel-1 only: Sentinel-1 bands `["VH", "VV"]`
> - For models using Sentinel-2 only: Sentinel-2 10m bands and 20m bands `["B02", "B03", "B04", "B08", "B05", "B06", "B07", "B11", "B12", "B8A"]`
> - For models using Sentinel-1 and Sentinel-2: Sentinel-2 10m bands and 20m bands and Sentinel-1 bands = `["B02", "B03", "B04", "B08", "B05", "B06", "B07", "B11", "B12", "B8A", "VH", "VV"]`
The multi-hot encoded output of the model indicates the predicted multi-label output.
The multi-hot encoded output relates to the following classes sorted in alphabetical order:
`['Agro-forestry areas', 'Arable land', 'Beaches, dunes, sands', 'Broad-leaved forest', 'Coastal wetlands',
'Complex cultivation patterns', 'Coniferous forest', 'Industrial or commercial units', 'Inland waters',
'Inland wetlands', 'Land principally occupied by agriculture, with significant areas of natural vegetation',
'Marine waters', 'Mixed forest', 'Moors, heathland and sclerophyllous vegetation',
'Natural grassland and sparsely vegetated areas', 'Pastures', 'Permanent crops', 'Transitional woodland, shrub',
'Urban fabric']`
## <!-- Tabelle -->
![[BigEarthNet](http://bigearth.net/)](https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/combined_2000_600_2020_0_wide.jpg)
| Model | Equivalent [`timm`](https://huggingface.co/docs/timm/en/index) model name | Sentinel-1 only | Sentinel-2 only | Sentinel-1 and Sentinel-2 |
|:-----------------|:---------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------:|
| ConvMixer-768/32 | `convmixer_768_32` | [ConvMixer-768/32 S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convmixer_768_32-s1-v0.2.0) | [ConvMixer-768/32 S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convmixer_768_32-s2-v0.2.0) | [ConvMixer-768/32 S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convmixer_768_32-all-v0.2.0) |
| ConvNext v2 Base | `convnextv2_base` | [ConvNext v2 Base S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convnextv2_base-s1-v0.2.0) | [ConvNext v2 Base S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convnextv2_base-s2-v0.2.0) | [ConvNext v2 Base S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/convnextv2_base-all-v0.2.0) |
| MLP-Mixer Base | `mixer_b16_224` | [MLP-Mixer Base S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mixer_b16_224-s1-v0.2.0) | [MLP-Mixer Base S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mixer_b16_224-s2-v0.2.0) | [MLP-Mixer Base S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mixer_b16_224-all-v0.2.0) |
| MobileViT-S | `mobilevit_s` | [MobileViT-S S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mobilevit_s-s1-v0.2.0) | [MobileViT-S S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mobilevit_s-s2-v0.2.0) | [MobileViT-S S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/mobilevit_s-all-v0.2.0) |
| ResNet-50 | `resnet50` | [ResNet-50 S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet50-s1-v0.2.0) | [ResNet-50 S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet50-s2-v0.2.0) | [ResNet-50 S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet50-all-v0.2.0) |
| ResNet-101 | `resnet101` | [ResNet-101 S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet101-s1-v0.2.0) | [ResNet-101 S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet101-s2-v0.2.0) | [ResNet-101 S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/resnet101-all-v0.2.0) |
| ViT Base | `vit_base_patch8_224` | [ViT Base S1](https://huggingface.co/BIFOLD-BigEarthNetv2-0/vit_base_patch8_224-s1-v0.2.0) | [ViT Base S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/vit_base_patch8_224-s2-v0.2.0) | [ViT Base S1+S2](https://huggingface.co/BIFOLD-BigEarthNetv2-0/vit_base_patch8_224-all-v0.2.0) |
![[BigEarthNet](http://bigearth.net/)](https://raw.githubusercontent.com/wiki/lhackel-tub/ConfigILM/static/imgs/combined_2000_600_2020_0_wide.jpg)
To use the model, download the codes that define the model architecture from the
[official BigEarthNet v2.0 (reBEN) repository](https://git.tu-berlin.de/rsim/reben-training-scripts) and load the model
using the code below. Note that [`configilm`](https://pypi.org/project/configilm/) is a requirement to use the
code below.
```python
from reben_publication.BigEarthNetv2_0_ImageClassifier import BigEarthNetv2_0_ImageClassifier
model = BigEarthNetv2_0_ImageClassifier.from_pretrained("path_to/huggingface_model_folder")
```
e.g.
```python
from reben_publication.BigEarthNetv2_0_ImageClassifier import BigEarthNetv2_0_ImageClassifier
model = BigEarthNetv2_0_ImageClassifier.from_pretrained(
"BIFOLD-BigEarthNetv2-0/resnet50-s2-v0.2.0"
)
```
If you use any of these models in your research, please cite the following papers:
```bibtex
CITATION FOR DATASET PAPER
```
```bibtex
@article{hackel2024configilm,
title={ConfigILM: A general purpose configurable library for combining image and language models for visual question answering},
author={Hackel, Leonard and Clasen, Kai Norman and Demir, Beg{\"u}m},
journal={SoftwareX},
volume={26},
pages={101731},
year={2024},
publisher={Elsevier}
}
``` |