Upload folder using huggingface_hub
Browse files- README.md +160 -0
- data/contrast.zip +3 -0
- data/gaussian_noise.zip +3 -0
- data/impulse_noise.zip +3 -0
- data/jpeg_compression.zip +3 -0
- data/motion_blur.zip +3 -0
- data/pixelate.zip +3 -0
- data/spatter.zip +3 -0
- data/test.zip +3 -0
- data/train.zip +3 -0
- eurosat.py +58 -0
README.md
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
dataset_info:
|
3 |
+
features:
|
4 |
+
- name: image
|
5 |
+
dtype: image
|
6 |
+
- name: label
|
7 |
+
dtype:
|
8 |
+
class_label:
|
9 |
+
names:
|
10 |
+
'0': annual crop land
|
11 |
+
'1': forest
|
12 |
+
'2': brushland or shrubland
|
13 |
+
'3': highway or road
|
14 |
+
'4': industrial buildings or commercial buildings
|
15 |
+
'5': pasture land
|
16 |
+
'6': permanent crop land
|
17 |
+
'7': residential buildings or homes or apartments
|
18 |
+
'8': river
|
19 |
+
'9': lake or sea
|
20 |
+
splits:
|
21 |
+
- name: train
|
22 |
+
num_bytes: 3962928
|
23 |
+
num_examples: 21600
|
24 |
+
- name: test
|
25 |
+
num_bytes: 489995
|
26 |
+
num_examples: 2700
|
27 |
+
- name: contrast
|
28 |
+
num_bytes: 511595
|
29 |
+
num_examples: 2700
|
30 |
+
- name: gaussian_noise
|
31 |
+
num_bytes: 543995
|
32 |
+
num_examples: 2700
|
33 |
+
- name: impulse_noise
|
34 |
+
num_bytes: 538595
|
35 |
+
num_examples: 2700
|
36 |
+
- name: jpeg_compression
|
37 |
+
num_bytes: 554795
|
38 |
+
num_examples: 2700
|
39 |
+
- name: motion_blur
|
40 |
+
num_bytes: 527795
|
41 |
+
num_examples: 2700
|
42 |
+
- name: pixelate
|
43 |
+
num_bytes: 511595
|
44 |
+
num_examples: 2700
|
45 |
+
- name: spatter
|
46 |
+
num_bytes: 506195
|
47 |
+
num_examples: 2700
|
48 |
+
download_size: 114799801
|
49 |
+
dataset_size: 8147488
|
50 |
+
---
|
51 |
+
|
52 |
+
|
53 |
+
# Dataset Card for EuroSAT
|
54 |
+
|
55 |
+
# Dataset Source
|
56 |
+
|
57 |
+
- [Paper with code](https://paperswithcode.com/dataset/eurosat)
|
58 |
+
|
59 |
+
|
60 |
+
# Usage
|
61 |
+
|
62 |
+
```python
|
63 |
+
from datasets import load_dataset
|
64 |
+
|
65 |
+
dataset = load_dataset('tranganke/eurosat')
|
66 |
+
```
|
67 |
+
|
68 |
+
|
69 |
+
### Data Fields
|
70 |
+
|
71 |
+
The dataset contains the following fields:
|
72 |
+
|
73 |
+
- `image`: An image in RGB format.
|
74 |
+
- `label`: The label for the image, which is one of 10 classes:
|
75 |
+
- 0: annual crop land
|
76 |
+
- 1: forest
|
77 |
+
- 2: brushland or shrubland
|
78 |
+
- 3: highway or road
|
79 |
+
- 4: industrial buildings or commercial buildings
|
80 |
+
- 5: pasture land
|
81 |
+
- 6: permanent crop land
|
82 |
+
- 7: residential buildings or homes or apartments
|
83 |
+
- 8: river
|
84 |
+
- 9: lake or sea
|
85 |
+
|
86 |
+
### Data Splits
|
87 |
+
|
88 |
+
The dataset contains the following splits:
|
89 |
+
|
90 |
+
- `train`: 21,600 examples
|
91 |
+
- `test`: 2,700 examples
|
92 |
+
- `contrast`: 2,700 examples
|
93 |
+
- `gaussian_noise`: 2,700 example
|
94 |
+
- `impulse_noise`: 2,700 examples
|
95 |
+
- `jpeg_compression`: 2,700 examples
|
96 |
+
- `motion_blur`: 2,700 examples
|
97 |
+
- `pixelate`: 2,700 examples
|
98 |
+
- `spatter`: 2,700 examples
|
99 |
+
|
100 |
+
You can use any of the provided BibTeX entries for your reference list:
|
101 |
+
|
102 |
+
```bibtex
|
103 |
+
@article{helber2019eurosat,
|
104 |
+
title={Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification},
|
105 |
+
author={Helber, Patrick and Bischke, Benjamin and Dengel, Andreas and Borth, Damian},
|
106 |
+
journal={IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing},
|
107 |
+
volume={12},
|
108 |
+
number={7},
|
109 |
+
pages={2217--2226},
|
110 |
+
year={2019},
|
111 |
+
publisher={IEEE}
|
112 |
+
}
|
113 |
+
|
114 |
+
@misc{yangAdaMergingAdaptiveModel2023,
|
115 |
+
title = {{{AdaMerging}}: {{Adaptive Model Merging}} for {{Multi-Task Learning}}},
|
116 |
+
shorttitle = {{{AdaMerging}}},
|
117 |
+
author = {Yang, Enneng and Wang, Zhenyi and Shen, Li and Liu, Shiwei and Guo, Guibing and Wang, Xingwei and Tao, Dacheng},
|
118 |
+
year = {2023},
|
119 |
+
month = oct,
|
120 |
+
number = {arXiv:2310.02575},
|
121 |
+
eprint = {2310.02575},
|
122 |
+
primaryclass = {cs},
|
123 |
+
publisher = {arXiv},
|
124 |
+
doi = {10.48550/arXiv.2310.02575},
|
125 |
+
url = {http://arxiv.org/abs/2310.02575},
|
126 |
+
archiveprefix = {arxiv},
|
127 |
+
keywords = {Computer Science - Computer Vision and Pattern Recognition,Computer Science - Machine Learning}
|
128 |
+
}
|
129 |
+
|
130 |
+
@misc{tangConcreteSubspaceLearning2023,
|
131 |
+
title = {Concrete {{Subspace Learning}} Based {{Interference Elimination}} for {{Multi-task Model Fusion}}},
|
132 |
+
author = {Tang, Anke and Shen, Li and Luo, Yong and Ding, Liang and Hu, Han and Du, Bo and Tao, Dacheng},
|
133 |
+
year = {2023},
|
134 |
+
month = dec,
|
135 |
+
number = {arXiv:2312.06173},
|
136 |
+
eprint = {2312.06173},
|
137 |
+
publisher = {arXiv},
|
138 |
+
url = {http://arxiv.org/abs/2312.06173},
|
139 |
+
archiveprefix = {arxiv},
|
140 |
+
copyright = {All rights reserved},
|
141 |
+
keywords = {Computer Science - Machine Learning}
|
142 |
+
}
|
143 |
+
|
144 |
+
|
145 |
+
@misc{tangMergingMultiTaskModels2024,
|
146 |
+
title = {Merging {{Multi-Task Models}} via {{Weight-Ensembling Mixture}} of {{Experts}}},
|
147 |
+
author = {Tang, Anke and Shen, Li and Luo, Yong and Yin, Nan and Zhang, Lefei and Tao, Dacheng},
|
148 |
+
year = {2024},
|
149 |
+
month = feb,
|
150 |
+
number = {arXiv:2402.00433},
|
151 |
+
eprint = {2402.00433},
|
152 |
+
primaryclass = {cs},
|
153 |
+
publisher = {arXiv},
|
154 |
+
doi = {10.48550/arXiv.2402.00433},
|
155 |
+
url = {http://arxiv.org/abs/2402.00433},
|
156 |
+
archiveprefix = {arxiv},
|
157 |
+
copyright = {All rights reserved},
|
158 |
+
keywords = {Computer Science - Computer Vision and Pattern Recognition,Computer Science - Machine Learning}
|
159 |
+
}
|
160 |
+
```
|
data/contrast.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66c8d83d8f0b602313fa7fe6db0ade135990173be1dbd7f0bba617d971d9e867
|
3 |
+
size 3117057
|
data/gaussian_noise.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:858f0f12b07a068676a2fefd1c0b77af4ac6887e9b1e510ced4c74da8f8a52bb
|
3 |
+
size 4962476
|
data/impulse_noise.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba070a3e856e3e8102cd6c433a1338a0bfd79d56479905ba55f10c224ef09de8
|
3 |
+
size 5155764
|
data/jpeg_compression.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44bccccbc692d3e1df9857e2abcd95cd3ad192b93e31f7818f0ddaf78aa62ffe
|
3 |
+
size 3539157
|
data/motion_blur.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d27fbf4e4f8f123febeb915df4ee65ec67917c4141174413274c4f1e022bb9b9
|
3 |
+
size 3465104
|
data/pixelate.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:271334e75cce92eef9a1bd5498cab4ac7031dcb3a38fce61d8871a2831394ada
|
3 |
+
size 2503369
|
data/spatter.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01ca43ad933878014bd283eccfb0d8731c08306aa86acc48120e5c4effd710c2
|
3 |
+
size 4767237
|
data/test.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16a5ca861583acb87c8b5b5ceeb5dae0b4f712d865bd0368070870f5a168e873
|
3 |
+
size 9634576
|
data/train.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ece9c02ec765c2a916f779d5777d85876258e47a0d9363af444cd6c42182f506
|
3 |
+
size 77655061
|
eurosat.py
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datasets
|
2 |
+
from datasets.data_files import DataFilesDict
|
3 |
+
from datasets.packaged_modules.imagefolder.imagefolder import ImageFolder, ImageFolderConfig
|
4 |
+
|
5 |
+
logger = datasets.logging.get_logger(__name__)
|
6 |
+
|
7 |
+
|
8 |
+
class EuroSAT(ImageFolder):
|
9 |
+
R"""
|
10 |
+
EuroSAT dataset for image classification.
|
11 |
+
"""
|
12 |
+
|
13 |
+
BUILDER_CONFIG_CLASS = ImageFolderConfig
|
14 |
+
BUILDER_CONFIGS = [
|
15 |
+
ImageFolderConfig(
|
16 |
+
name="default",
|
17 |
+
features=("images", "labels"),
|
18 |
+
data_files=DataFilesDict(
|
19 |
+
{
|
20 |
+
split: f"data/{split}.zip"
|
21 |
+
for split in ["train", "test"]
|
22 |
+
+ ["contrast", "gaussian_noise", "impulse_noise", "jpeg_compression", "motion_blur", "pixelate", "spatter"]
|
23 |
+
}
|
24 |
+
),
|
25 |
+
)
|
26 |
+
]
|
27 |
+
|
28 |
+
classnames = [
|
29 |
+
"annual crop land",
|
30 |
+
"forest",
|
31 |
+
"brushland or shrubland",
|
32 |
+
"highway or road",
|
33 |
+
"industrial buildings or commercial buildings",
|
34 |
+
"pasture land",
|
35 |
+
"permanent crop land",
|
36 |
+
"residential buildings or homes or apartments",
|
37 |
+
"river",
|
38 |
+
"lake or sea",
|
39 |
+
]
|
40 |
+
|
41 |
+
clip_templates = [
|
42 |
+
lambda c: f"a centered satellite photo of {c}.",
|
43 |
+
lambda c: f"a centered satellite photo of a {c}.",
|
44 |
+
lambda c: f"a centered satellite photo of the {c}.",
|
45 |
+
]
|
46 |
+
|
47 |
+
def _info(self):
|
48 |
+
return datasets.DatasetInfo(
|
49 |
+
description="EuroSAT dataset for image classification.",
|
50 |
+
features=datasets.Features(
|
51 |
+
{
|
52 |
+
"image": datasets.Image(),
|
53 |
+
"label": datasets.ClassLabel(names=self.classnames),
|
54 |
+
}
|
55 |
+
),
|
56 |
+
supervised_keys=("image", "label"),
|
57 |
+
task_templates=[datasets.ImageClassification(image_column="image", label_column="label")],
|
58 |
+
)
|