parquet-converter commited on
Commit
f92ef56
·
1 Parent(s): a48b72c

Update parquet files

Browse files
160px/imagewoof-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:913840c17395bfa51ceda76219c831b55f1296f1aa9e2ad4ce14f59cb1036692
3
+ size 68970310
160px/imagewoof-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30c49c6fb9a3c20744cdaffaeab8c516872cac56976a38854e42eb43bf8d101c
3
+ size 29965612
320px/imagewoof-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5ed4feee8ba3e84985d25b0f3274736908991239ee5e512ebc2e146dc6fca64
3
+ size 232611390
320px/imagewoof-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c23e1d72cb8037ba21db5084a45621a1204ab2170bc875f38f2d06eab38cee9d
3
+ size 101419076
README.md DELETED
@@ -1,160 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- language:
5
- - en
6
- language_creators:
7
- - crowdsourced
8
- license:
9
- - apache-2.0
10
- multilinguality: []
11
- pretty_name: Imagewoof
12
- size_categories:
13
- - 1K<n<10K
14
- source_datasets:
15
- - extended
16
- task_categories:
17
- - image-classification
18
- task_ids:
19
- - image-classification
20
- paperswithcode_id: imagewoof
21
- ---
22
-
23
- # Dataset Card for Imagewoof
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:** https://github.com/fastai/imagenette#imagewoof
53
- - **Repository:** https://github.com/fastai/imagenette
54
- - **Leaderboard:** https://paperswithcode.com/sota/image-classification-on-imagewoof
55
-
56
- ### Dataset Summary
57
-
58
- A smaller subset of 10 classes from [Imagenet](https://huggingface.co/datasets/imagenet-1k#dataset-summary) that aren't so easy to classify, since they're all dog breeds.
59
- This dataset was created by [Jeremy Howard](https://twitter.com/jeremyphoward), and this repository is only there to share his work on this platform. The repository owner takes no credit of any kind in the creation, curation or packaging of the dataset.
60
-
61
- ### Supported Tasks and Leaderboards
62
-
63
- - `image-classification`: The dataset can be used to train a model for Image Classification.
64
-
65
- ### Languages
66
-
67
- The class labels in the dataset are in English.
68
-
69
- ## Dataset Structure
70
-
71
- ### Data Instances
72
-
73
- A data point comprises an image URL and its classification label.
74
-
75
- ```
76
- {
77
- 'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=320x320 at 0x19FA12186D8>,
78
- 'label': 'Beagle',
79
- }
80
- ```
81
-
82
- ### Data Fields
83
-
84
- - `image`: A `PIL.Image.Image` object containing the image.
85
- - `label`: the expected class label of the image.
86
-
87
- ### Data Splits
88
-
89
- | |train|validation|
90
- |---------|----:|---------:|
91
- |imagewoof| 9025| 3929|
92
-
93
-
94
- ## Dataset Creation
95
-
96
- ### Curation Rationale
97
-
98
- cf. https://huggingface.co/datasets/imagenet-1k#curation-rationale
99
-
100
- ### Source Data
101
-
102
- #### Initial Data Collection and Normalization
103
-
104
- Imagewoof is a subset of [ImageNet](https://huggingface.co/datasets/imagenet-1k). Information about data collection of the source data can be found [here](https://huggingface.co/datasets/imagenet-1k#initial-data-collection-and-normalization).
105
-
106
- ### Annotations
107
-
108
- #### Annotation process
109
-
110
- cf. https://huggingface.co/datasets/imagenet-1k#annotation-process
111
-
112
- #### Who are the annotators?
113
-
114
- cf. https://huggingface.co/datasets/imagenet-1k#who-are-the-annotators
115
-
116
- ### Personal and Sensitive Information
117
-
118
- cf. https://huggingface.co/datasets/imagenet-1k#personal-and-sensitive-information
119
-
120
- ## Considerations for Using the Data
121
-
122
- ### Social Impact of Dataset
123
-
124
- cf. https://huggingface.co/datasets/imagenet-1k#social-impact-of-dataset
125
-
126
- ### Discussion of Biases
127
-
128
- cf. https://huggingface.co/datasets/imagenet-1k#discussion-of-biases
129
-
130
- ### Other Known Limitations
131
-
132
- cf. https://huggingface.co/datasets/imagenet-1k#other-known-limitations
133
-
134
- ## Additional Information
135
-
136
- ### Dataset Curators
137
-
138
- cf. https://huggingface.co/datasets/imagenet-1k#dataset-curators
139
- and Jeremy Howard
140
-
141
- ### Licensing Information
142
-
143
- [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
144
-
145
- ### Citation Information
146
-
147
- ```
148
- @software{Howard_Imagewoof_2019,
149
- title={Imagewoof: a subset of 10 classes from Imagenet that aren't so easy to classify},
150
- author={Jeremy Howard},
151
- year={2019},
152
- month={March},
153
- publisher = {GitHub},
154
- url = {https://github.com/fastai/imagenette#imagewoof}
155
- }
156
- ```
157
-
158
- ### Contributions
159
-
160
- This dataset was created by [Jeremy Howard](https://twitter.com/jeremyphoward) and published on [Github](https://github.com/fastai/imagenette). It was then only integrated into HuggingFace Datasets by [@frgfm](https://huggingface.co/frgfm).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1,191 +0,0 @@
1
- {
2
- "full_size": {
3
- "description": "Imagewoof is a subset of 10 classes from Imagenet that aren't so \neasy to classify, since they're all dog breeds. The breeds are: \nAustralian terrier, Border terrier, Samoyed, Beagle, Shih-Tzu, \nEnglish foxhound, Rhodesian ridgeback, Dingo, Golden retriever, \nOld English sheepdog.",
4
- "citation": "@software{Howard_Imagewoof_2019,\ntitle={Imagewoof: a subset of 10 classes from Imagenet that aren't so easy to classify},\nauthor={Jeremy Howard},\nyear={2019},\nmonth={March},\npublisher = {GitHub},\nurl = {https://github.com/fastai/imagenette#imagewoof}\n}\n",
5
- "homepage": "https://github.com/fastai/imagenette#imagewoof",
6
- "license": "Apache License 2.0",
7
- "features": {
8
- "image": {
9
- "decode": true,
10
- "id": null,
11
- "_type": "Image"
12
- },
13
- "label": {
14
- "num_classes": 10,
15
- "names": ["Australian terrier", "Border terrier", "Samoyed", "Beagle", "Shih-Tzu", "English foxhound", "Rhodesian ridgeback", "Dingo", "Golden retriever", "Old English sheepdog"],
16
- "id": null,
17
- "_type": "ClassLabel"
18
- }
19
- },
20
- "post_processed": null,
21
- "supervised_keys": null,
22
- "task_templates": null,
23
- "builder_name": "imagewoof",
24
- "config_name": "full_size",
25
- "version": {
26
- "version_str": "1.0.0",
27
- "description": null,
28
- "major": 1,
29
- "minor": 0,
30
- "patch": 0
31
- },
32
- "splits": {
33
- "train": {
34
- "name": "train",
35
- "num_bytes": 946495775,
36
- "num_examples": 9025,
37
- "dataset_name": "imagewoof"
38
- },
39
- "validation": {
40
- "name": "validation",
41
- "num_bytes": 404651794,
42
- "num_examples": 3929,
43
- "dataset_name": "imagewoof"
44
- }
45
- },
46
- "download_checksums": {
47
- "https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2.tgz": {
48
- "num_bytes": 1343715595,
49
- "checksum": "de3f58c4ea3e042cf3f8365fbc699288cfe1d8c151059040d181c221bd5a55b8"
50
- },
51
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2/train.txt": {
52
- "num_bytes": 428249,
53
- "checksum": "1489044a137fbdf6b3bf6476902fc8a95940dd3ac143abb849b8abd5727b7952"
54
- },
55
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2/val.txt": {
56
- "num_bytes": 178758,
57
- "checksum": "38b3f58ced48759facffc7c86078c35d6d69eafb7c72e051947358e7fc689ae5"
58
- }
59
- },
60
- "download_size": 1344322602,
61
- "post_processing_size": null,
62
- "dataset_size": 1352337764,
63
- "size_in_bytes": 1352337764
64
- },
65
- "320px": {
66
- "description": "Imagewoof is a subset of 10 classes from Imagenet that aren't so \neasy to classify, since they're all dog breeds. The breeds are: \nAustralian terrier, Border terrier, Samoyed, Beagle, Shih-Tzu, \nEnglish foxhound, Rhodesian ridgeback, Dingo, Golden retriever, \nOld English sheepdog.",
67
- "citation": "@software{Howard_Imagewoof_2019,\ntitle={Imagewoof: a subset of 10 classes from Imagenet that aren't so easy to classify},\nauthor={Jeremy Howard},\nyear={2019},\nmonth={March},\npublisher = {GitHub},\nurl = {https://github.com/fastai/imagenette#imagewoof}\n}\n",
68
- "homepage": "https://github.com/fastai/imagenette#imagewoof",
69
- "license": "Apache License 2.0",
70
- "features": {
71
- "image": {
72
- "decode": true,
73
- "id": null,
74
- "_type": "Image"
75
- },
76
- "label": {
77
- "num_classes": 10,
78
- "names": ["Australian terrier", "Border terrier", "Samoyed", "Beagle", "Shih-Tzu", "English foxhound", "Rhodesian ridgeback", "Dingo", "Golden retriever", "Old English sheepdog"],
79
- "id": null,
80
- "_type": "ClassLabel"
81
- }
82
- },
83
- "post_processed": null,
84
- "supervised_keys": null,
85
- "task_templates": null,
86
- "builder_name": "imagewoof",
87
- "config_name": "320px",
88
- "version": {
89
- "version_str": "1.0.0",
90
- "description": null,
91
- "major": 1,
92
- "minor": 0,
93
- "patch": 0
94
- },
95
- "splits": {
96
- "train": {
97
- "name": "train",
98
- "num_bytes": 232930320,
99
- "num_examples": 9025,
100
- "dataset_name": "imagewoof"
101
- },
102
- "validation": {
103
- "name": "validation",
104
- "num_bytes": 101604948,
105
- "num_examples": 3929,
106
- "dataset_name": "imagewoof"
107
- }
108
- },
109
- "download_checksums": {
110
- "https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2-320.tgz": {
111
- "num_bytes": 328387740,
112
- "checksum": "7db6120fdb9ae079e26346f89e7b00d7f184f8137791609b97fd0405d3f92305"
113
- },
114
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2-320/train.txt": {
115
- "num_bytes": 464349,
116
- "checksum": "316c1cf6e47c625144e5b8daa022e958cb25d499c941c258fae83fb86fd62137"
117
- },
118
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2-320/val.txt": {
119
- "num_bytes": 194474,
120
- "checksum": "d8c03e25ddac2ba229e8cc0a433de4849daf2979cd753357368fb392d1be6034"
121
- }
122
- },
123
- "download_size": 329046563,
124
- "post_processing_size": null,
125
- "dataset_size": 335725463,
126
- "size_in_bytes": 335725463
127
- },
128
- "160px": {
129
- "description": "Imagewoof is a subset of 10 classes from Imagenet that aren't so \neasy to classify, since they're all dog breeds. The breeds are: \nAustralian terrier, Border terrier, Samoyed, Beagle, Shih-Tzu, \nEnglish foxhound, Rhodesian ridgeback, Dingo, Golden retriever, \nOld English sheepdog.",
130
- "citation": "@software{Howard_Imagewoof_2019,\ntitle={Imagewoof: a subset of 10 classes from Imagenet that aren't so easy to classify},\nauthor={Jeremy Howard},\nyear={2019},\nmonth={March},\npublisher = {GitHub},\nurl = {https://github.com/fastai/imagenette#imagewoof}\n}\n",
131
- "homepage": "https://github.com/fastai/imagenette#imagewoof",
132
- "license": "Apache License 2.0",
133
- "features": {
134
- "image": {
135
- "decode": true,
136
- "id": null,
137
- "_type": "Image"
138
- },
139
- "label": {
140
- "num_classes": 10,
141
- "names": ["Australian terrier", "Border terrier", "Samoyed", "Beagle", "Shih-Tzu", "English foxhound", "Rhodesian ridgeback", "Dingo", "Golden retriever", "Old English sheepdog"],
142
- "id": null,
143
- "_type": "ClassLabel"
144
- }
145
- },
146
- "post_processed": null,
147
- "supervised_keys": null,
148
- "task_templates": null,
149
- "builder_name": "imagewoof",
150
- "config_name": "160px",
151
- "version": {
152
- "version_str": "1.0.0",
153
- "description": null,
154
- "major": 1,
155
- "minor": 0,
156
- "patch": 0
157
- },
158
- "splits": {
159
- "train": {
160
- "name": "train",
161
- "num_bytes": 69910461,
162
- "num_examples": 9025,
163
- "dataset_name": "imagewoof"
164
- },
165
- "validation": {
166
- "name": "validation",
167
- "num_bytes": 30397020,
168
- "num_examples": 3929,
169
- "dataset_name": "imagewoof"
170
- }
171
- },
172
- "download_checksums": {
173
- "https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2-160.tgz": {
174
- "num_bytes": 92612825,
175
- "checksum": "b5ffa16037e07f60882434f55b7814a3d44483f2a484129f251604bc0d0f8172"
176
- },
177
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2-160/train.txt": {
178
- "num_bytes": 464349,
179
- "checksum": "a9a1aabefeef279410ee19c169c2e5acb10a72e747d68812fce907dd5096729b"
180
- },
181
- "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata/imagewoof2-160/val.txt": {
182
- "num_bytes": 194474,
183
- "checksum": "f97370d03e7338c22f994342e814424704d49340efb0801c9d5d5ccb37084f50"
184
- }
185
- },
186
- "download_size": 93271648,
187
- "post_processing_size": null,
188
- "dataset_size": 101497676,
189
- "size_in_bytes": 101497676
190
- }
191
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
full_size/imagewoof-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e6fe2e509b9557ae81e06baa3555a20408b1002165f806ab04a5fd4d160cf34
3
+ size 564880188
full_size/imagewoof-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c5462bb342004b36c4f0f60ca1c700e8b72f38314ac9b1cd6a5363299880454
3
+ size 379528868
full_size/imagewoof-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac21761d5c970b36d87ccb810001df0d0e30787d38008a79d5d471f276a6515
3
+ size 403816840
imagewoof.py DELETED
@@ -1,161 +0,0 @@
1
- # Copyright (C) 2022, François-Guillaume Fernandez.
2
-
3
- # This program is licensed under the Apache License 2.0.
4
- # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0> for full license details.
5
-
6
- """Imagewoof dataset."""
7
-
8
- import os
9
- import json
10
-
11
- import datasets
12
-
13
-
14
- _HOMEPAGE = "https://github.com/fastai/imagenette#imagewoof"
15
-
16
- _LICENSE = "Apache License 2.0"
17
-
18
- _CITATION = """\
19
- @software{Howard_Imagewoof_2019,
20
- title={Imagewoof: a subset of 10 classes from Imagenet that aren't so easy to classify},
21
- author={Jeremy Howard},
22
- year={2019},
23
- month={March},
24
- publisher = {GitHub},
25
- url = {https://github.com/fastai/imagenette#imagewoof}
26
- }
27
- """
28
-
29
- _DESCRIPTION = """\
30
- Imagewoof is a subset of 10 classes from Imagenet that aren't so
31
- easy to classify, since they're all dog breeds. The breeds are:
32
- Australian terrier, Border terrier, Samoyed, Beagle, Shih-Tzu,
33
- English foxhound, Rhodesian ridgeback, Dingo, Golden retriever,
34
- Old English sheepdog.
35
- """
36
-
37
- _LABEL_MAP = [
38
- 'n02086240',
39
- 'n02087394',
40
- 'n02088364',
41
- 'n02089973',
42
- 'n02093754',
43
- 'n02096294',
44
- 'n02099601',
45
- 'n02105641',
46
- 'n02111889',
47
- 'n02115641',
48
- ]
49
-
50
- _REPO = "https://huggingface.co/datasets/frgfm/imagewoof/resolve/main/metadata"
51
-
52
-
53
- class ImagewoofConfig(datasets.BuilderConfig):
54
- """BuilderConfig for Imagewoof."""
55
-
56
- def __init__(self, data_url, metadata_urls, **kwargs):
57
- """BuilderConfig for Imagewoof.
58
- Args:
59
- data_url: `string`, url to download the zip file from.
60
- matadata_urls: dictionary with keys 'train' and 'validation' containing the archive metadata URLs
61
- **kwargs: keyword arguments forwarded to super.
62
- """
63
- super(ImagewoofConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
64
- self.data_url = data_url
65
- self.metadata_urls = metadata_urls
66
-
67
-
68
- class Imagewoof(datasets.GeneratorBasedBuilder):
69
- """Imagewoof dataset."""
70
-
71
- BUILDER_CONFIGS = [
72
- ImagewoofConfig(
73
- name="full_size",
74
- description="All images are in their original size.",
75
- data_url="https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2.tgz",
76
- metadata_urls={
77
- "train": f"{_REPO}/imagewoof2/train.txt",
78
- "validation": f"{_REPO}/imagewoof2/val.txt",
79
- },
80
- ),
81
- ImagewoofConfig(
82
- name="320px",
83
- description="All images were resized on their shortest side to 320 pixels.",
84
- data_url="https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2-320.tgz",
85
- metadata_urls={
86
- "train": f"{_REPO}/imagewoof2-320/train.txt",
87
- "validation": f"{_REPO}/imagewoof2-320/val.txt",
88
- },
89
- ),
90
- ImagewoofConfig(
91
- name="160px",
92
- description="All images were resized on their shortest side to 160 pixels.",
93
- data_url="https://s3.amazonaws.com/fast-ai-imageclas/imagewoof2-160.tgz",
94
- metadata_urls={
95
- "train": f"{_REPO}/imagewoof2-160/train.txt",
96
- "validation": f"{_REPO}/imagewoof2-160/val.txt",
97
- },
98
- ),
99
- ]
100
-
101
- def _info(self):
102
- return datasets.DatasetInfo(
103
- description=_DESCRIPTION + self.config.description,
104
- features=datasets.Features(
105
- {
106
- "image": datasets.Image(),
107
- "label": datasets.ClassLabel(
108
- names=[
109
- "Australian terrier",
110
- "Border terrier",
111
- "Samoyed",
112
- "Beagle",
113
- "Shih-Tzu",
114
- "English foxhound",
115
- "Rhodesian ridgeback",
116
- "Dingo",
117
- "Golden retriever",
118
- "Old English sheepdog",
119
- ]
120
- ),
121
- }
122
- ),
123
- supervised_keys=None,
124
- homepage=_HOMEPAGE,
125
- license=_LICENSE,
126
- citation=_CITATION,
127
- )
128
-
129
- def _split_generators(self, dl_manager):
130
- archive_path = dl_manager.download(self.config.data_url)
131
- metadata_paths = dl_manager.download(self.config.metadata_urls)
132
- archive_iter = dl_manager.iter_archive(archive_path)
133
- return [
134
- datasets.SplitGenerator(
135
- name=datasets.Split.TRAIN,
136
- gen_kwargs={
137
- "images": archive_iter,
138
- "metadata_path": metadata_paths["train"],
139
- },
140
- ),
141
- datasets.SplitGenerator(
142
- name=datasets.Split.VALIDATION,
143
- gen_kwargs={
144
- "images": archive_iter,
145
- "metadata_path": metadata_paths["validation"],
146
- },
147
- ),
148
- ]
149
-
150
- def _generate_examples(self, images, metadata_path):
151
- with open(metadata_path, encoding="utf-8") as f:
152
- files_to_keep = set(f.read().split("\n"))
153
- idx = 0
154
- for file_path, file_obj in images:
155
- if file_path in files_to_keep:
156
- label = _LABEL_MAP.index(file_path.split("/")[-2])
157
- yield idx, {
158
- "image": {"path": file_path, "bytes": file_obj.read()},
159
- "label": label,
160
- }
161
- idx += 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
metadata/imagewoof2-160/train.txt DELETED
The diff for this file is too large to render. See raw diff
 
metadata/imagewoof2-160/val.txt DELETED
The diff for this file is too large to render. See raw diff
 
metadata/imagewoof2-320/train.txt DELETED
The diff for this file is too large to render. See raw diff
 
metadata/imagewoof2-320/val.txt DELETED
The diff for this file is too large to render. See raw diff
 
metadata/imagewoof2/train.txt DELETED
The diff for this file is too large to render. See raw diff
 
metadata/imagewoof2/val.txt DELETED
The diff for this file is too large to render. See raw diff