keremberke commited on
Commit
a0b014f
1 Parent(s): e25d71d

dataset uploaded by roboflow2huggingface package

Browse files
README.dataset.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="keremberke/pokemon-classification" src="https://huggingface.co/datasets/keremberke/pokemon-classification/resolve/main/thumbnail.jpg">
12
+ </div>
13
+
14
+ ### Dataset Labels
15
+
16
+ ```
17
+ ['Porygon', 'Goldeen', 'Hitmonlee', 'Hitmonchan', 'Gloom', 'Aerodactyl', 'Mankey', 'Seadra', 'Gengar', 'Venonat', 'Articuno', 'Seaking', 'Dugtrio', 'Machop', 'Jynx', 'Oddish', 'Dodrio', 'Dragonair', 'Weedle', 'Golduck', 'Flareon', 'Krabby', 'Parasect', 'Ninetales', 'Nidoqueen', 'Kabutops', 'Drowzee', 'Caterpie', 'Jigglypuff', 'Machamp', 'Clefairy', 'Kangaskhan', 'Dragonite', 'Weepinbell', 'Fearow', 'Bellsprout', 'Grimer', 'Nidorina', 'Staryu', 'Horsea', 'Electabuzz', 'Dratini', 'Machoke', 'Magnemite', 'Squirtle', 'Gyarados', 'Pidgeot', 'Bulbasaur', 'Nidoking', 'Golem', 'Dewgong', 'Moltres', 'Zapdos', 'Poliwrath', 'Vulpix', 'Beedrill', 'Charmander', 'Abra', 'Zubat', 'Golbat', 'Wigglytuff', 'Charizard', 'Slowpoke', 'Poliwag', 'Tentacruel', 'Rhyhorn', 'Onix', 'Butterfree', 'Exeggcute', 'Sandslash', 'Pinsir', 'Rattata', 'Growlithe', 'Haunter', 'Pidgey', 'Ditto', 'Farfetchd', 'Pikachu', 'Raticate', 'Wartortle', 'Vaporeon', 'Cloyster', 'Hypno', 'Arbok', 'Metapod', 'Tangela', 'Kingler', 'Exeggutor', 'Kadabra', 'Seel', 'Voltorb', 'Chansey', 'Venomoth', 'Ponyta', 'Vileplume', 'Koffing', 'Blastoise', 'Tentacool', 'Lickitung', 'Paras', 'Clefable', 'Cubone', 'Marowak', 'Nidorino', 'Jolteon', 'Muk', 'Magikarp', 'Slowbro', 'Tauros', 'Kabuto', 'Spearow', 'Sandshrew', 'Eevee', 'Kakuna', 'Omastar', 'Ekans', 'Geodude', 'Magmar', 'Snorlax', 'Meowth', 'Pidgeotto', 'Venusaur', 'Persian', 'Rhydon', 'Starmie', 'Charmeleon', 'Lapras', 'Alakazam', 'Graveler', 'Psyduck', 'Rapidash', 'Doduo', 'Magneton', 'Arcanine', 'Electrode', 'Omanyte', 'Poliwhirl', 'Mew', 'Alolan Sandslash', 'Mewtwo', 'Weezing', 'Gastly', 'Victreebel', 'Ivysaur', 'MrMime', 'Shellder', 'Scyther', 'Diglett', 'Primeape', 'Raichu']
18
+ ```
19
+
20
+
21
+ ### Number of Images
22
+
23
+ ```json
24
+ {'train': 4869, 'valid': 1390, 'test': 732}
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("keremberke/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 ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38a98970a0b5c8cecab8be18f09cb16037a71a9819f56c5e57052deb4806239d
3
+ size 6956373
data/train.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6359730e9a6c620313401857e79aab8ca2571f65b34d621fd33cb88365811353
3
+ size 45324257
data/valid-mini.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e78fc3b28018a9e690a5502098cc98d50b9886b9f86f38cb9ba13c5daacea72
3
+ size 667172
data/valid.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec4f0c7e9d318fc4e1af1a69387d0250f570177de4bf661c1a7042abf48910e
3
+ size 13196775
pokemon-classification.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 = ['Porygon', 'Goldeen', 'Hitmonlee', 'Hitmonchan', 'Gloom', 'Aerodactyl', 'Mankey', 'Seadra', 'Gengar', 'Venonat', 'Articuno', 'Seaking', 'Dugtrio', 'Machop', 'Jynx', 'Oddish', 'Dodrio', 'Dragonair', 'Weedle', 'Golduck', 'Flareon', 'Krabby', 'Parasect', 'Ninetales', 'Nidoqueen', 'Kabutops', 'Drowzee', 'Caterpie', 'Jigglypuff', 'Machamp', 'Clefairy', 'Kangaskhan', 'Dragonite', 'Weepinbell', 'Fearow', 'Bellsprout', 'Grimer', 'Nidorina', 'Staryu', 'Horsea', 'Electabuzz', 'Dratini', 'Machoke', 'Magnemite', 'Squirtle', 'Gyarados', 'Pidgeot', 'Bulbasaur', 'Nidoking', 'Golem', 'Dewgong', 'Moltres', 'Zapdos', 'Poliwrath', 'Vulpix', 'Beedrill', 'Charmander', 'Abra', 'Zubat', 'Golbat', 'Wigglytuff', 'Charizard', 'Slowpoke', 'Poliwag', 'Tentacruel', 'Rhyhorn', 'Onix', 'Butterfree', 'Exeggcute', 'Sandslash', 'Pinsir', 'Rattata', 'Growlithe', 'Haunter', 'Pidgey', 'Ditto', 'Farfetchd', 'Pikachu', 'Raticate', 'Wartortle', 'Vaporeon', 'Cloyster', 'Hypno', 'Arbok', 'Metapod', 'Tangela', 'Kingler', 'Exeggutor', 'Kadabra', 'Seel', 'Voltorb', 'Chansey', 'Venomoth', 'Ponyta', 'Vileplume', 'Koffing', 'Blastoise', 'Tentacool', 'Lickitung', 'Paras', 'Clefable', 'Cubone', 'Marowak', 'Nidorino', 'Jolteon', 'Muk', 'Magikarp', 'Slowbro', 'Tauros', 'Kabuto', 'Spearow', 'Sandshrew', 'Eevee', 'Kakuna', 'Omastar', 'Ekans', 'Geodude', 'Magmar', 'Snorlax', 'Meowth', 'Pidgeotto', 'Venusaur', 'Persian', 'Rhydon', 'Starmie', 'Charmeleon', 'Lapras', 'Alakazam', 'Graveler', 'Psyduck', 'Rapidash', 'Doduo', 'Magneton', 'Arcanine', 'Electrode', 'Omanyte', 'Poliwhirl', 'Mew', 'Alolan Sandslash', 'Mewtwo', 'Weezing', 'Gastly', 'Victreebel', 'Ivysaur', 'MrMime', 'Shellder', 'Scyther', 'Diglett', 'Primeape', 'Raichu']
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/keremberke/pokemon-classification/resolve/main/data/train.zip",
51
+ "validation": "https://huggingface.co/datasets/keremberke/pokemon-classification/resolve/main/data/valid.zip",
52
+ "test": "https://huggingface.co/datasets/keremberke/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/keremberke/pokemon-classification/resolve/main/data/valid-mini.zip",
61
+ "validation": "https://huggingface.co/datasets/keremberke/pokemon-classification/resolve/main/data/valid-mini.zip",
62
+ "test": "https://huggingface.co/datasets/keremberke/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 ADDED
@@ -0,0 +1 @@
 
 
1
+ {"train": 4869, "valid": 1390, "test": 732}
thumbnail.jpg ADDED

Git LFS Details

  • SHA256: c7fa111d00bb5fb1e148569650864b2c373d86ad6b0575532beb9de62ad3c44b
  • Pointer size: 131 Bytes
  • Size of remote file: 117 kB