parquet-converter commited on
Commit
003a4c0
·
1 Parent(s): d8b579a

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,16 +0,0 @@
1
- *.bin.* filter=lfs diff=lfs merge=lfs -text
2
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.h5 filter=lfs diff=lfs merge=lfs -text
5
- *.tflite filter=lfs diff=lfs merge=lfs -text
6
- *.tar.gz filter=lfs diff=lfs merge=lfs -text
7
- *.ot filter=lfs diff=lfs merge=lfs -text
8
- *.onnx filter=lfs diff=lfs merge=lfs -text
9
- *.arrow filter=lfs diff=lfs merge=lfs -text
10
- *.ftz filter=lfs diff=lfs merge=lfs -text
11
- *.joblib filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.pb filter=lfs diff=lfs merge=lfs -text
15
- *.pt filter=lfs diff=lfs merge=lfs -text
16
- *.pth filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,187 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - machine-generated
4
- language_creators:
5
- - found
6
- language: []
7
- license:
8
- - other
9
- multilinguality:
10
- - monolingual
11
- size_categories:
12
- - unknown
13
- source_datasets:
14
- - original
15
- task_categories:
16
- - other
17
- task_ids: []
18
- pretty_name: Set5
19
- tags:
20
- - other-image-super-resolution
21
- ---
22
-
23
- # Dataset Card for Set5
24
-
25
- ## Table of Contents
26
- - [Table of Contents](#table-of-contents)
27
- - [Dataset Description](#dataset-description)
28
- - [Dataset Summary](#dataset-summary)
29
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
- - [Languages](#languages)
31
- - [Dataset Structure](#dataset-structure)
32
- - [Data Instances](#data-instances)
33
- - [Data Fields](#data-fields)
34
- - [Data Splits](#data-splits)
35
- - [Dataset Creation](#dataset-creation)
36
- - [Curation Rationale](#curation-rationale)
37
- - [Source Data](#source-data)
38
- - [Annotations](#annotations)
39
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
- - [Considerations for Using the Data](#considerations-for-using-the-data)
41
- - [Social Impact of Dataset](#social-impact-of-dataset)
42
- - [Discussion of Biases](#discussion-of-biases)
43
- - [Other Known Limitations](#other-known-limitations)
44
- - [Additional Information](#additional-information)
45
- - [Dataset Curators](#dataset-curators)
46
- - [Licensing Information](#licensing-information)
47
- - [Citation Information](#citation-information)
48
- - [Contributions](#contributions)
49
-
50
- ## Dataset Description
51
-
52
- - **Homepage**: http://people.rennes.inria.fr/Aline.Roumy/results/SR_BMVC12.html
53
- - **Repository**: https://huggingface.co/datasets/eugenesiow/Set5
54
- - **Paper**: http://people.rennes.inria.fr/Aline.Roumy/publi/12bmvc_Bevilacqua_lowComplexitySR.pdf
55
- - **Leaderboard**: https://github.com/eugenesiow/super-image#scale-x2
56
-
57
- ### Dataset Summary
58
-
59
- Set5 is a evaluation dataset with 5 RGB images for the image super resolution task. The 5 images of the dataset are (“baby”, “bird”, “butterfly”, “head”, “woman”).
60
-
61
- Install with `pip`:
62
- ```bash
63
- pip install datasets super-image
64
- ```
65
-
66
- Evaluate a model with the [`super-image`](https://github.com/eugenesiow/super-image) library:
67
- ```python
68
- from datasets import load_dataset
69
- from super_image import EdsrModel
70
- from super_image.data import EvalDataset, EvalMetrics
71
-
72
- dataset = load_dataset('eugenesiow/Set5', 'bicubic_x2', split='validation')
73
- eval_dataset = EvalDataset(dataset)
74
- model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=2)
75
- EvalMetrics().evaluate(model, eval_dataset)
76
- ```
77
-
78
- ### Supported Tasks and Leaderboards
79
-
80
- The dataset is commonly used for evaluation of the `image-super-resolution` task.
81
-
82
- Unofficial [`super-image`](https://github.com/eugenesiow/super-image) leaderboard for:
83
- - [Scale 2](https://github.com/eugenesiow/super-image#scale-x2)
84
- - [Scale 3](https://github.com/eugenesiow/super-image#scale-x3)
85
- - [Scale 4](https://github.com/eugenesiow/super-image#scale-x4)
86
- - [Scale 8](https://github.com/eugenesiow/super-image#scale-x8)
87
-
88
- ### Languages
89
-
90
- Not applicable.
91
-
92
- ## Dataset Structure
93
-
94
- ### Data Instances
95
-
96
- An example of `validation` for `bicubic_x2` looks as follows.
97
- ```
98
- {
99
- "hr": "/.cache/huggingface/datasets/downloads/extracted/Set5_HR/baby.png",
100
- "lr": "/.cache/huggingface/datasets/downloads/extracted/Set5_LR_x2/baby.png"
101
- }
102
- ```
103
-
104
- ### Data Fields
105
-
106
- The data fields are the same among all splits.
107
-
108
- - `hr`: a `string` to the path of the High Resolution (HR) `.png` image.
109
- - `lr`: a `string` to the path of the Low Resolution (LR) `.png` image.
110
-
111
- ### Data Splits
112
-
113
- | name |validation|
114
- |-------|---:|
115
- |bicubic_x2|5|
116
- |bicubic_x3|5|
117
- |bicubic_x4|5|
118
-
119
-
120
- ## Dataset Creation
121
-
122
- ### Curation Rationale
123
-
124
- [More Information Needed]
125
-
126
- ### Source Data
127
-
128
- #### Initial Data Collection and Normalization
129
-
130
- [More Information Needed]
131
-
132
- #### Who are the source language producers?
133
-
134
- [More Information Needed]
135
-
136
- ### Annotations
137
-
138
- #### Annotation process
139
-
140
- No annotations.
141
-
142
- #### Who are the annotators?
143
-
144
- No annotators.
145
-
146
- ### Personal and Sensitive Information
147
-
148
- [More Information Needed]
149
-
150
- ## Considerations for Using the Data
151
-
152
- ### Social Impact of Dataset
153
-
154
- [More Information Needed]
155
-
156
- ### Discussion of Biases
157
-
158
- [More Information Needed]
159
-
160
- ### Other Known Limitations
161
-
162
- [More Information Needed]
163
-
164
- ## Additional Information
165
-
166
- ### Dataset Curators
167
-
168
- - **Original Authors**: [Bevilacqua et al.](http://people.rennes.inria.fr/Aline.Roumy/results/SR_BMVC12.html)
169
-
170
- ### Licensing Information
171
-
172
- Academic use only.
173
-
174
- ### Citation Information
175
-
176
- ```bibtex
177
- @article{bevilacqua2012low,
178
- title={Low-complexity single-image super-resolution based on nonnegative neighbor embedding},
179
- author={Bevilacqua, Marco and Roumy, Aline and Guillemot, Christine and Alberi-Morel, Marie Line},
180
- year={2012},
181
- publisher={BMVA press}
182
- }
183
- ```
184
-
185
- ### Contributions
186
-
187
- Thanks to [@eugenesiow](https://github.com/eugenesiow) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Set5.py DELETED
@@ -1,133 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Set5 dataset: An evaluation dataset for the image super resolution task"""
16
-
17
-
18
- import datasets
19
- from pathlib import Path
20
-
21
-
22
- _CITATION = """
23
- @article{bevilacqua2012low,
24
- title={Low-complexity single-image super-resolution based on nonnegative neighbor embedding},
25
- author={Bevilacqua, Marco and Roumy, Aline and Guillemot, Christine and Alberi-Morel, Marie Line},
26
- year={2012},
27
- publisher={BMVA press}
28
- }
29
- """
30
-
31
- _DESCRIPTION = """
32
- Set5 is a evaluation dataset with 5 RGB images for the image super resolution task.
33
- """
34
-
35
- _HOMEPAGE = "http://people.rennes.inria.fr/Aline.Roumy/results/SR_BMVC12.html"
36
-
37
- _LICENSE = "UNK"
38
-
39
- _DL_URL = "https://huggingface.co/datasets/eugenesiow/Set5/resolve/main/data/"
40
-
41
- _DEFAULT_CONFIG = "bicubic_x2"
42
-
43
- _DATA_OPTIONS = {
44
- "bicubic_x2": {
45
- "hr": _DL_URL + "Set5_HR.tar.gz",
46
- "lr": _DL_URL + "Set5_LR_x2.tar.gz",
47
- },
48
- "bicubic_x3": {
49
- "hr": _DL_URL + "Set5_HR.tar.gz",
50
- "lr": _DL_URL + "Set5_LR_x3.tar.gz",
51
- },
52
- "bicubic_x4": {
53
- "hr": _DL_URL + "Set5_HR.tar.gz",
54
- "lr": _DL_URL + "Set5_LR_x4.tar.gz",
55
- }
56
- }
57
-
58
-
59
- class Set5Config(datasets.BuilderConfig):
60
- """BuilderConfig for Set5."""
61
-
62
- def __init__(
63
- self,
64
- name,
65
- hr_url,
66
- lr_url,
67
- **kwargs,
68
- ):
69
- if name not in _DATA_OPTIONS:
70
- raise ValueError("data must be one of %s" % _DATA_OPTIONS)
71
- super(Set5Config, self).__init__(name=name, version=datasets.Version("1.0.0"), **kwargs)
72
- self.hr_url = hr_url
73
- self.lr_url = lr_url
74
-
75
-
76
- class Set5(datasets.GeneratorBasedBuilder):
77
- """Set5 dataset for single image super resolution evaluation."""
78
-
79
- BUILDER_CONFIGS = [
80
- Set5Config(
81
- name=key,
82
- hr_url=values['hr'],
83
- lr_url=values['lr']
84
- ) for key, values in _DATA_OPTIONS.items()
85
- ]
86
-
87
- DEFAULT_CONFIG_NAME = _DEFAULT_CONFIG
88
-
89
- def _info(self):
90
- features = datasets.Features(
91
- {
92
- "hr": datasets.Value("string"),
93
- "lr": datasets.Value("string"),
94
- }
95
- )
96
- return datasets.DatasetInfo(
97
- description=_DESCRIPTION,
98
- features=features,
99
- supervised_keys=None,
100
- homepage=_HOMEPAGE,
101
- license=_LICENSE,
102
- citation=_CITATION,
103
- )
104
-
105
- def _split_generators(self, dl_manager):
106
- """Returns SplitGenerators."""
107
- hr_data_dir = dl_manager.download_and_extract(self.config.hr_url)
108
- lr_data_dir = dl_manager.download_and_extract(self.config.lr_url)
109
- return [
110
- datasets.SplitGenerator(
111
- name=datasets.Split.VALIDATION,
112
- # These kwargs will be passed to _generate_examples
113
- gen_kwargs={
114
- "lr_path": lr_data_dir,
115
- "hr_path": str(Path(hr_data_dir) / 'Set5_HR')
116
- },
117
- )
118
- ]
119
-
120
- def _generate_examples(
121
- self, hr_path, lr_path
122
- ):
123
- """ Yields examples as (key, example) tuples. """
124
- # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
125
- # The `key` is here for legacy reason (tfds) and is not important in itself.
126
- extensions = {'.jpg', '.jpeg', '.png'}
127
- for file_path in sorted(Path(lr_path).glob("**/*")):
128
- if file_path.suffix in extensions:
129
- file_path_str = str(file_path.as_posix())
130
- yield file_path_str, {
131
- 'lr': file_path_str,
132
- 'hr': str((Path(hr_path) / file_path.name).as_posix())
133
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bicubic_x2/set5-validation.parquet ADDED
Binary file (3.97 kB). View file
 
bicubic_x3/set5-validation.parquet ADDED
Binary file (3.97 kB). View file
 
bicubic_x4/set5-validation.parquet ADDED
Binary file (3.97 kB). View file
 
data/Set5_HR.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:260fc447296333f6c2716bcd65513968c33b666f21a905537ee3330c51a1945b
3
- size 852139
 
 
 
 
data/Set5_LR_x2.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a4337dd3c9b0898a5c91013261b9dbdba80d53e27ff79ecf19d9f6585302c1e0
3
- size 254915
 
 
 
 
data/Set5_LR_x3.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:60b77169b3f686ce6463df37ce5c8c4217f937eff901f1dcd97228ef4823c603
3
- size 122387
 
 
 
 
data/Set5_LR_x4.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a1dc849c67618f6d762348f237142612fe1b966c4b29b3a36382585703cd8ee0
3
- size 73309