tanganke commited on
Commit
5c48498
1 Parent(s): 7f289af
README.md CHANGED
@@ -54,34 +54,55 @@ dataset_info:
54
  '44': wetland
55
  splits:
56
  - name: train
57
- num_bytes: 2383019
58
  num_examples: 18900
59
  - name: test
60
- num_bytes: 781557
61
  num_examples: 6300
62
  - name: contrast
63
- num_bytes: 831957
64
  num_examples: 6300
65
  - name: gaussian_noise
66
- num_bytes: 907557
67
  num_examples: 6300
68
  - name: impulse_noise
69
- num_bytes: 894957
70
  num_examples: 6300
71
  - name: jpeg_compression
72
- num_bytes: 932757
73
  num_examples: 6300
74
  - name: motion_blur
75
- num_bytes: 869757
76
  num_examples: 6300
77
  - name: pixelate
78
- num_bytes: 831957
79
  num_examples: 6300
80
  - name: spatter
81
- num_bytes: 819357
82
  num_examples: 6300
83
- download_size: 916981012
84
- dataset_size: 9252875
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  ---
86
 
87
  # [RESISC45](https://www.tensorflow.org/datasets/catalog/resisc45)
 
54
  '44': wetland
55
  splits:
56
  - name: train
57
+ num_bytes: 246710368.7
58
  num_examples: 18900
59
  - name: test
60
+ num_bytes: 87460774.8
61
  num_examples: 6300
62
  - name: contrast
63
+ num_bytes: 67512032.7
64
  num_examples: 6300
65
  - name: gaussian_noise
66
+ num_bytes: 116440617.3
67
  num_examples: 6300
68
  - name: impulse_noise
69
+ num_bytes: 125449913.4
70
  num_examples: 6300
71
  - name: jpeg_compression
72
+ num_bytes: 85196403.6
73
  num_examples: 6300
74
  - name: motion_blur
75
+ num_bytes: 73908158.1
76
  num_examples: 6300
77
  - name: pixelate
78
+ num_bytes: 5573022.0
79
  num_examples: 6300
80
  - name: spatter
81
+ num_bytes: 109007915.1
82
  num_examples: 6300
83
+ download_size: 911199338
84
+ dataset_size: 917259205.7
85
+ configs:
86
+ - config_name: default
87
+ data_files:
88
+ - split: train
89
+ path: data/train-*
90
+ - split: test
91
+ path: data/test-*
92
+ - split: contrast
93
+ path: data/contrast-*
94
+ - split: gaussian_noise
95
+ path: data/gaussian_noise-*
96
+ - split: impulse_noise
97
+ path: data/impulse_noise-*
98
+ - split: jpeg_compression
99
+ path: data/jpeg_compression-*
100
+ - split: motion_blur
101
+ path: data/motion_blur-*
102
+ - split: pixelate
103
+ path: data/pixelate-*
104
+ - split: spatter
105
+ path: data/spatter-*
106
  ---
107
 
108
  # [RESISC45](https://www.tensorflow.org/datasets/catalog/resisc45)
data/{contrast.zip → contrast-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95b995aa5742a8bf5c99caec21e425ed62e8be5e7e2499b770e177a06442ceb0
3
- size 65821198
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14521b67381193021fac0bc6cd1e7215c046371b93beeb9ff0e3b86116e2f43f
3
+ size 65486738
data/{gaussian_noise.zip → gaussian_noise-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e3fbcc81eb278e18e9e8bc75a220d07caccc1c8ac8c55eed2d84c7f8aca804df
3
- size 115764717
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4c03081639a93b4c3b451383549548e480bf933609bdf61026a055b4af4e7f8
3
+ size 115717004
data/{impulse_noise.zip → impulse_noise-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7422b2cde62e6697a3d0ef3f0727aca21b788ab7b45a1622a2b57f4c65c32332
3
- size 124570638
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32f87d44342109e5582e8edad1faf4a6857035d9ac151da251210d678eaac1bd
3
+ size 124422064
data/{motion_blur.zip → jpeg_compression-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e372cae5fdc68296741d71742333cc39c05860faa463d37a734d52e14bd0e1d
3
- size 72616247
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae8d698122b94189025f812e7544f4ddead8933fc7d3c2923686b22a47cd7861
3
+ size 82891945
data/{jpeg_compression.zip → motion_blur-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e3c4d35e8b22f6db7e50f8394f7cd1e40dbbeec75f4cd92b27b9610b2d585fc
3
- size 82819474
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d0a90270bd50a10737ee3deb5ec07a216cdcdfca97c9d1d85471550441401a4
3
+ size 72131353
data/{pixelate.zip → pixelate-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:10ec683407ab63d57b7109fa9c78edf7a78b1e83572bfeddd052decee8e4e0c4
3
- size 5677005
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4ba9413e418cd3b616e5f8958364470ef2a8c62e3b89b81762b72927d10e660
3
+ size 2375070
data/spatter-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:171cbf1f4a37089603e84ae2499cf9d765fe97852cf38bf4e47465a46cba31f4
3
+ size 108346707
data/spatter.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:99bb1700ff22675d5521d919b59ad26dd6716c3e4d98ecb89fdb2cdef23f827f
3
- size 108574042
 
 
 
 
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdd84285a7eb4c45b1cea8f125991c2cdd96c2d24c5f2f873585dcdf4b8fc248
3
+ size 85069793
data/test.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5955d0c47b55a178b30a3b6f5f8dff1447a3d2d6e018a6867ddb3d0e640de32b
3
- size 85393782
 
 
 
 
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b7238d16d25fbf1d14370ccf8d35e1450a50c98aec7833c544d31f44cb37590
3
+ size 254758664
data/train.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0427735bc7efb681e9b680ee49839f53a1e3087d9734f6b507a057ab23be5f10
3
- size 255743909
 
 
 
 
resisc45.py DELETED
@@ -1,108 +0,0 @@
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 RESISC45(ImageFolder):
9
- R"""
10
- RESISC45 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
- "airplane",
30
- "airport",
31
- "baseball diamond",
32
- "basketball court",
33
- "beach",
34
- "bridge",
35
- "chaparral",
36
- "church",
37
- "circular farmland",
38
- "cloud",
39
- "commercial area",
40
- "dense residential",
41
- "desert",
42
- "forest",
43
- "freeway",
44
- "golf course",
45
- "ground track field",
46
- "harbor",
47
- "industrial area",
48
- "intersection",
49
- "island",
50
- "lake",
51
- "meadow",
52
- "medium residential",
53
- "mobile home park",
54
- "mountain",
55
- "overpass",
56
- "palace",
57
- "parking lot",
58
- "railway",
59
- "railway station",
60
- "rectangular farmland",
61
- "river",
62
- "roundabout",
63
- "runway",
64
- "sea ice",
65
- "ship",
66
- "snowberg",
67
- "sparse residential",
68
- "stadium",
69
- "storage tank",
70
- "tennis court",
71
- "terrace",
72
- "thermal power station",
73
- "wetland",
74
- ]
75
-
76
- clip_templates = [
77
- lambda c: f"satellite imagery of {c}.",
78
- lambda c: f"aerial imagery of {c}.",
79
- lambda c: f"satellite photo of {c}.",
80
- lambda c: f"aerial photo of {c}.",
81
- lambda c: f"satellite view of {c}.",
82
- lambda c: f"aerial view of {c}.",
83
- lambda c: f"satellite imagery of a {c}.",
84
- lambda c: f"aerial imagery of a {c}.",
85
- lambda c: f"satellite photo of a {c}.",
86
- lambda c: f"aerial photo of a {c}.",
87
- lambda c: f"satellite view of a {c}.",
88
- lambda c: f"aerial view of a {c}.",
89
- lambda c: f"satellite imagery of the {c}.",
90
- lambda c: f"aerial imagery of the {c}.",
91
- lambda c: f"satellite photo of the {c}.",
92
- lambda c: f"aerial photo of the {c}.",
93
- lambda c: f"satellite view of the {c}.",
94
- lambda c: f"aerial view of the {c}.",
95
- ]
96
-
97
- def _info(self):
98
- return datasets.DatasetInfo(
99
- description="RESISC45 dataset for image classification.",
100
- features=datasets.Features(
101
- {
102
- "image": datasets.Image(),
103
- "label": datasets.ClassLabel(names=self.classnames),
104
- }
105
- ),
106
- supervised_keys=("image", "label"),
107
- task_templates=[datasets.ImageClassification(image_column="image", label_column="label")],
108
- )