Datasets:
Tasks:
Image Classification
Size:
1K - 10K
parquet-converter
commited on
Commit
·
db0618a
1
Parent(s):
b004b6a
Update parquet files
Browse files- README.dataset.txt +0 -6
- README.md +0 -89
- README.roboflow.txt +0 -24
- data/test.zip → full/pokemon-classification-test.parquet +2 -2
- data/train.zip → full/pokemon-classification-train.parquet +2 -2
- data/valid.zip → full/pokemon-classification-validation.parquet +2 -2
- thumbnail.jpg → mini/pokemon-classification-test.parquet +2 -2
- data/valid-mini.zip → mini/pokemon-classification-train.parquet +2 -2
- mini/pokemon-classification-validation.parquet +3 -0
- pokemon-classification.py +0 -114
- split_name_to_num_samples.json +0 -1
README.dataset.txt
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
# 150 Pokemon > Pokedex resized
|
2 |
-
https://universe.roboflow.com/robert-demo-qvail/pokedex
|
3 |
-
|
4 |
-
Provided by [Lance Zhang](https://www.kaggle.com/lantian773030/pokemonclassification)
|
5 |
-
License: Public Domain
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
---
|
2 |
-
task_categories:
|
3 |
-
- image-classification
|
4 |
-
tags:
|
5 |
-
- roboflow
|
6 |
-
- roboflow2huggingface
|
7 |
-
- Gaming
|
8 |
-
---
|
9 |
-
|
10 |
-
<div align="center">
|
11 |
-
<img width="640" alt="fcakyon/pokemon-classification" src="https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/thumbnail.jpg">
|
12 |
-
</div>
|
13 |
-
|
14 |
-
### Dataset Labels
|
15 |
-
|
16 |
-
```
|
17 |
-
['Golbat', 'Machoke', 'Omastar', 'Diglett', 'Lapras', 'Kabuto', 'Persian', 'Weepinbell', 'Golem', 'Dodrio', 'Raichu', 'Zapdos', 'Raticate', 'Magnemite', 'Ivysaur', 'Growlithe', 'Tangela', 'Drowzee', 'Rapidash', 'Venonat', 'Pidgeot', 'Nidorino', 'Porygon', 'Lickitung', 'Rattata', 'Machop', 'Charmeleon', 'Slowbro', 'Parasect', 'Eevee', 'Starmie', 'Staryu', 'Psyduck', 'Dragonair', 'Magikarp', 'Vileplume', 'Marowak', 'Pidgeotto', 'Shellder', 'Mewtwo', 'Farfetchd', 'Kingler', 'Seel', 'Kakuna', 'Doduo', 'Electabuzz', 'Charmander', 'Rhyhorn', 'Tauros', 'Dugtrio', 'Poliwrath', 'Gengar', 'Exeggutor', 'Dewgong', 'Jigglypuff', 'Geodude', 'Kadabra', 'Nidorina', 'Sandshrew', 'Grimer', 'MrMime', 'Pidgey', 'Koffing', 'Ekans', 'Alolan Sandslash', 'Venusaur', 'Snorlax', 'Paras', 'Jynx', 'Chansey', 'Hitmonchan', 'Gastly', 'Kangaskhan', 'Oddish', 'Wigglytuff', 'Graveler', 'Arcanine', 'Clefairy', 'Articuno', 'Poliwag', 'Abra', 'Squirtle', 'Voltorb', 'Ponyta', 'Moltres', 'Nidoqueen', 'Magmar', 'Onix', 'Vulpix', 'Butterfree', 'Krabby', 'Arbok', 'Clefable', 'Goldeen', 'Magneton', 'Dratini', 'Caterpie', 'Jolteon', 'Nidoking', 'Alakazam', 'Dragonite', 'Fearow', 'Slowpoke', 'Weezing', 'Beedrill', 'Weedle', 'Cloyster', 'Vaporeon', 'Gyarados', 'Golduck', 'Machamp', 'Hitmonlee', 'Primeape', 'Cubone', 'Sandslash', 'Scyther', 'Haunter', 'Metapod', 'Tentacruel', 'Aerodactyl', 'Kabutops', 'Ninetales', 'Zubat', 'Rhydon', 'Mew', 'Pinsir', 'Ditto', 'Victreebel', 'Omanyte', 'Horsea', 'Pikachu', 'Blastoise', 'Venomoth', 'Charizard', 'Seadra', 'Muk', 'Spearow', 'Bulbasaur', 'Bellsprout', 'Electrode', 'Gloom', 'Poliwhirl', 'Flareon', 'Seaking', 'Hypno', 'Wartortle', 'Mankey', 'Tentacool', 'Exeggcute', 'Meowth']
|
18 |
-
```
|
19 |
-
|
20 |
-
|
21 |
-
### Number of Images
|
22 |
-
|
23 |
-
```json
|
24 |
-
{'train': 4869, 'test': 732, 'valid': 1390}
|
25 |
-
```
|
26 |
-
|
27 |
-
|
28 |
-
### How to Use
|
29 |
-
|
30 |
-
- Install [datasets](https://pypi.org/project/datasets/):
|
31 |
-
|
32 |
-
```bash
|
33 |
-
pip install datasets
|
34 |
-
```
|
35 |
-
|
36 |
-
- Load the dataset:
|
37 |
-
|
38 |
-
```python
|
39 |
-
from datasets import load_dataset
|
40 |
-
|
41 |
-
ds = load_dataset("fcakyon/pokemon-classification", name="full")
|
42 |
-
example = ds['train'][0]
|
43 |
-
```
|
44 |
-
|
45 |
-
### Roboflow Dataset Page
|
46 |
-
[https://universe.roboflow.com/robert-demo-qvail/pokedex/dataset/14](https://universe.roboflow.com/robert-demo-qvail/pokedex/dataset/14?ref=roboflow2huggingface)
|
47 |
-
|
48 |
-
### Citation
|
49 |
-
|
50 |
-
```
|
51 |
-
@misc{ pokedex_dataset,
|
52 |
-
title = { Pokedex Dataset },
|
53 |
-
type = { Open Source Dataset },
|
54 |
-
author = { Lance Zhang },
|
55 |
-
howpublished = { \\url{ https://universe.roboflow.com/robert-demo-qvail/pokedex } },
|
56 |
-
url = { https://universe.roboflow.com/robert-demo-qvail/pokedex },
|
57 |
-
journal = { Roboflow Universe },
|
58 |
-
publisher = { Roboflow },
|
59 |
-
year = { 2022 },
|
60 |
-
month = { dec },
|
61 |
-
note = { visited on 2023-01-14 },
|
62 |
-
}
|
63 |
-
```
|
64 |
-
|
65 |
-
### License
|
66 |
-
Public Domain
|
67 |
-
|
68 |
-
### Dataset Summary
|
69 |
-
This dataset was exported via roboflow.com on December 20, 2022 at 5:34 PM GMT
|
70 |
-
|
71 |
-
Roboflow is an end-to-end computer vision platform that helps you
|
72 |
-
* collaborate with your team on computer vision projects
|
73 |
-
* collect & organize images
|
74 |
-
* understand unstructured image data
|
75 |
-
* annotate, and create datasets
|
76 |
-
* export, train, and deploy computer vision models
|
77 |
-
* use active learning to improve your dataset over time
|
78 |
-
|
79 |
-
It includes 6991 images.
|
80 |
-
Pokemon are annotated in folder format.
|
81 |
-
|
82 |
-
The following pre-processing was applied to each image:
|
83 |
-
* Auto-orientation of pixel data (with EXIF-orientation stripping)
|
84 |
-
* Resize to 224x224 (Fit (black edges))
|
85 |
-
|
86 |
-
No image augmentation techniques were applied.
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.roboflow.txt
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
|
2 |
-
Pokedex - v14 Pokedex resized
|
3 |
-
==============================
|
4 |
-
|
5 |
-
This dataset was exported via roboflow.com on December 20, 2022 at 5:34 PM GMT
|
6 |
-
|
7 |
-
Roboflow is an end-to-end computer vision platform that helps you
|
8 |
-
* collaborate with your team on computer vision projects
|
9 |
-
* collect & organize images
|
10 |
-
* understand unstructured image data
|
11 |
-
* annotate, and create datasets
|
12 |
-
* export, train, and deploy computer vision models
|
13 |
-
* use active learning to improve your dataset over time
|
14 |
-
|
15 |
-
It includes 6991 images.
|
16 |
-
Pokemon are annotated in folder format.
|
17 |
-
|
18 |
-
The following pre-processing was applied to each image:
|
19 |
-
* Auto-orientation of pixel data (with EXIF-orientation stripping)
|
20 |
-
* Resize to 224x224 (Fit (black edges))
|
21 |
-
|
22 |
-
No image augmentation techniques were applied.
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/test.zip → full/pokemon-classification-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f579805fa565c1ac47c2ef96505d8319ac9e0ed4665bf99b8c8b634847be2d85
|
3 |
+
size 7113057
|
data/train.zip → full/pokemon-classification-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d0f07aca9f73744f2c11deb37b385b9d6ef8baedf1a6b60483e2bde57356d47c
|
3 |
+
size 46133325
|
data/valid.zip → full/pokemon-classification-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e32c710e92bbc7daf8ef7e37158f89318a24b5c2d5209bb3b36aa239300ec122
|
3 |
+
size 13460079
|
thumbnail.jpg → mini/pokemon-classification-test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d15c4eebac32798175747c57930266788860b5de32983cbe0b5793f6a4dccb30
|
3 |
+
size 675150
|
data/valid-mini.zip → mini/pokemon-classification-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d15c4eebac32798175747c57930266788860b5de32983cbe0b5793f6a4dccb30
|
3 |
+
size 675150
|
mini/pokemon-classification-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d15c4eebac32798175747c57930266788860b5de32983cbe0b5793f6a4dccb30
|
3 |
+
size 675150
|
pokemon-classification.py
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
import datasets
|
4 |
-
from datasets.tasks import ImageClassification
|
5 |
-
|
6 |
-
|
7 |
-
_HOMEPAGE = "https://universe.roboflow.com/robert-demo-qvail/pokedex/dataset/14"
|
8 |
-
_LICENSE = "Public Domain"
|
9 |
-
_CITATION = """\
|
10 |
-
@misc{ pokedex_dataset,
|
11 |
-
title = { Pokedex Dataset },
|
12 |
-
type = { Open Source Dataset },
|
13 |
-
author = { Lance Zhang },
|
14 |
-
howpublished = { \\url{ https://universe.roboflow.com/robert-demo-qvail/pokedex } },
|
15 |
-
url = { https://universe.roboflow.com/robert-demo-qvail/pokedex },
|
16 |
-
journal = { Roboflow Universe },
|
17 |
-
publisher = { Roboflow },
|
18 |
-
year = { 2022 },
|
19 |
-
month = { dec },
|
20 |
-
note = { visited on 2023-01-14 },
|
21 |
-
}
|
22 |
-
"""
|
23 |
-
_CATEGORIES = ['Golbat', 'Machoke', 'Omastar', 'Diglett', 'Lapras', 'Kabuto', 'Persian', 'Weepinbell', 'Golem', 'Dodrio', 'Raichu', 'Zapdos', 'Raticate', 'Magnemite', 'Ivysaur', 'Growlithe', 'Tangela', 'Drowzee', 'Rapidash', 'Venonat', 'Pidgeot', 'Nidorino', 'Porygon', 'Lickitung', 'Rattata', 'Machop', 'Charmeleon', 'Slowbro', 'Parasect', 'Eevee', 'Starmie', 'Staryu', 'Psyduck', 'Dragonair', 'Magikarp', 'Vileplume', 'Marowak', 'Pidgeotto', 'Shellder', 'Mewtwo', 'Farfetchd', 'Kingler', 'Seel', 'Kakuna', 'Doduo', 'Electabuzz', 'Charmander', 'Rhyhorn', 'Tauros', 'Dugtrio', 'Poliwrath', 'Gengar', 'Exeggutor', 'Dewgong', 'Jigglypuff', 'Geodude', 'Kadabra', 'Nidorina', 'Sandshrew', 'Grimer', 'MrMime', 'Pidgey', 'Koffing', 'Ekans', 'Alolan Sandslash', 'Venusaur', 'Snorlax', 'Paras', 'Jynx', 'Chansey', 'Hitmonchan', 'Gastly', 'Kangaskhan', 'Oddish', 'Wigglytuff', 'Graveler', 'Arcanine', 'Clefairy', 'Articuno', 'Poliwag', 'Abra', 'Squirtle', 'Voltorb', 'Ponyta', 'Moltres', 'Nidoqueen', 'Magmar', 'Onix', 'Vulpix', 'Butterfree', 'Krabby', 'Arbok', 'Clefable', 'Goldeen', 'Magneton', 'Dratini', 'Caterpie', 'Jolteon', 'Nidoking', 'Alakazam', 'Dragonite', 'Fearow', 'Slowpoke', 'Weezing', 'Beedrill', 'Weedle', 'Cloyster', 'Vaporeon', 'Gyarados', 'Golduck', 'Machamp', 'Hitmonlee', 'Primeape', 'Cubone', 'Sandslash', 'Scyther', 'Haunter', 'Metapod', 'Tentacruel', 'Aerodactyl', 'Kabutops', 'Ninetales', 'Zubat', 'Rhydon', 'Mew', 'Pinsir', 'Ditto', 'Victreebel', 'Omanyte', 'Horsea', 'Pikachu', 'Blastoise', 'Venomoth', 'Charizard', 'Seadra', 'Muk', 'Spearow', 'Bulbasaur', 'Bellsprout', 'Electrode', 'Gloom', 'Poliwhirl', 'Flareon', 'Seaking', 'Hypno', 'Wartortle', 'Mankey', 'Tentacool', 'Exeggcute', 'Meowth']
|
24 |
-
|
25 |
-
|
26 |
-
class POKEMONCLASSIFICATIONConfig(datasets.BuilderConfig):
|
27 |
-
"""Builder Config for pokemon-classification"""
|
28 |
-
|
29 |
-
def __init__(self, data_urls, **kwargs):
|
30 |
-
"""
|
31 |
-
BuilderConfig for pokemon-classification.
|
32 |
-
|
33 |
-
Args:
|
34 |
-
data_urls: `dict`, name to url to download the zip file from.
|
35 |
-
**kwargs: keyword arguments forwarded to super.
|
36 |
-
"""
|
37 |
-
super(POKEMONCLASSIFICATIONConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
38 |
-
self.data_urls = data_urls
|
39 |
-
|
40 |
-
|
41 |
-
class POKEMONCLASSIFICATION(datasets.GeneratorBasedBuilder):
|
42 |
-
"""pokemon-classification image classification dataset"""
|
43 |
-
|
44 |
-
VERSION = datasets.Version("1.0.0")
|
45 |
-
BUILDER_CONFIGS = [
|
46 |
-
POKEMONCLASSIFICATIONConfig(
|
47 |
-
name="full",
|
48 |
-
description="Full version of pokemon-classification dataset.",
|
49 |
-
data_urls={
|
50 |
-
"train": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/train.zip",
|
51 |
-
"validation": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/valid.zip",
|
52 |
-
"test": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/test.zip",
|
53 |
-
}
|
54 |
-
,
|
55 |
-
),
|
56 |
-
POKEMONCLASSIFICATIONConfig(
|
57 |
-
name="mini",
|
58 |
-
description="Mini version of pokemon-classification dataset.",
|
59 |
-
data_urls={
|
60 |
-
"train": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/valid-mini.zip",
|
61 |
-
"validation": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/valid-mini.zip",
|
62 |
-
"test": "https://huggingface.co/datasets/fcakyon/pokemon-classification/resolve/main/data/valid-mini.zip",
|
63 |
-
},
|
64 |
-
)
|
65 |
-
]
|
66 |
-
|
67 |
-
def _info(self):
|
68 |
-
return datasets.DatasetInfo(
|
69 |
-
features=datasets.Features(
|
70 |
-
{
|
71 |
-
"image_file_path": datasets.Value("string"),
|
72 |
-
"image": datasets.Image(),
|
73 |
-
"labels": datasets.features.ClassLabel(names=_CATEGORIES),
|
74 |
-
}
|
75 |
-
),
|
76 |
-
supervised_keys=("image", "labels"),
|
77 |
-
homepage=_HOMEPAGE,
|
78 |
-
citation=_CITATION,
|
79 |
-
license=_LICENSE,
|
80 |
-
task_templates=[ImageClassification(image_column="image", label_column="labels")],
|
81 |
-
)
|
82 |
-
|
83 |
-
def _split_generators(self, dl_manager):
|
84 |
-
data_files = dl_manager.download_and_extract(self.config.data_urls)
|
85 |
-
return [
|
86 |
-
datasets.SplitGenerator(
|
87 |
-
name=datasets.Split.TRAIN,
|
88 |
-
gen_kwargs={
|
89 |
-
"files": dl_manager.iter_files([data_files["train"]]),
|
90 |
-
},
|
91 |
-
),
|
92 |
-
datasets.SplitGenerator(
|
93 |
-
name=datasets.Split.VALIDATION,
|
94 |
-
gen_kwargs={
|
95 |
-
"files": dl_manager.iter_files([data_files["validation"]]),
|
96 |
-
},
|
97 |
-
),
|
98 |
-
datasets.SplitGenerator(
|
99 |
-
name=datasets.Split.TEST,
|
100 |
-
gen_kwargs={
|
101 |
-
"files": dl_manager.iter_files([data_files["test"]]),
|
102 |
-
},
|
103 |
-
),
|
104 |
-
]
|
105 |
-
|
106 |
-
def _generate_examples(self, files):
|
107 |
-
for i, path in enumerate(files):
|
108 |
-
file_name = os.path.basename(path)
|
109 |
-
if file_name.endswith((".jpg", ".png", ".jpeg", ".bmp", ".tif", ".tiff")):
|
110 |
-
yield i, {
|
111 |
-
"image_file_path": path,
|
112 |
-
"image": path,
|
113 |
-
"labels": os.path.basename(os.path.dirname(path)),
|
114 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
split_name_to_num_samples.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"train": 4869, "test": 732, "valid": 1390}
|
|
|
|