Florian Torres
commited on
Commit
·
b9adeb2
1
Parent(s):
6a33e30
Add first version
Browse files- README.md +9 -3
- config.json +330 -0
- pytorch_model.bin +3 -0
README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Poké Model
|
| 2 |
+
|
| 3 |
+
Poké Model is a Pokémon Classifier created to be used with [Pokédex AI](https://github.com/torresflo/Pokedex-AI). It is a fine-tuned model of google/vit-base-patch16-224 to classify Pokémon of the first generation.
|
| 4 |
+
|
| 5 |
+
More information on how to generate and how to use the model can be found on this [dedicated repository](https://github.com/torresflo/Poke-Model).
|
| 6 |
+
|
| 7 |
+
## License
|
| 8 |
+
|
| 9 |
+
Distributed under the GNU General Public License v3.0. See [here](https://www.gnu.org/licenses/gpl-3.0.en.html) for more information.
|
config.json
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ViTForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "bulbasaur",
|
| 13 |
+
"1": "ivysaur",
|
| 14 |
+
"2": "venusaur",
|
| 15 |
+
"3": "charmander",
|
| 16 |
+
"4": "charmeleon",
|
| 17 |
+
"5": "charizard",
|
| 18 |
+
"6": "squirtle",
|
| 19 |
+
"7": "wartortle",
|
| 20 |
+
"8": "blastoise",
|
| 21 |
+
"9": "caterpie",
|
| 22 |
+
"10": "metapod",
|
| 23 |
+
"11": "butterfree",
|
| 24 |
+
"12": "weedle",
|
| 25 |
+
"13": "kakuna",
|
| 26 |
+
"14": "beedrill",
|
| 27 |
+
"15": "pidgey",
|
| 28 |
+
"16": "pidgeotto",
|
| 29 |
+
"17": "pidgeot",
|
| 30 |
+
"18": "rattata",
|
| 31 |
+
"19": "raticate",
|
| 32 |
+
"20": "spearow",
|
| 33 |
+
"21": "fearow",
|
| 34 |
+
"22": "ekans",
|
| 35 |
+
"23": "arbok",
|
| 36 |
+
"24": "pikachu",
|
| 37 |
+
"25": "raichu",
|
| 38 |
+
"26": "sandshrew",
|
| 39 |
+
"27": "sandslash",
|
| 40 |
+
"28": "nidoran-f",
|
| 41 |
+
"29": "nidorina",
|
| 42 |
+
"30": "nidoqueen",
|
| 43 |
+
"31": "nidoran-m",
|
| 44 |
+
"32": "nidorino",
|
| 45 |
+
"33": "nidoking",
|
| 46 |
+
"34": "clefairy",
|
| 47 |
+
"35": "clefable",
|
| 48 |
+
"36": "vulpix",
|
| 49 |
+
"37": "ninetales",
|
| 50 |
+
"38": "jigglypuff",
|
| 51 |
+
"39": "wigglytuff",
|
| 52 |
+
"40": "zubat",
|
| 53 |
+
"41": "golbat",
|
| 54 |
+
"42": "oddish",
|
| 55 |
+
"43": "gloom",
|
| 56 |
+
"44": "vileplume",
|
| 57 |
+
"45": "paras",
|
| 58 |
+
"46": "parasect",
|
| 59 |
+
"47": "venonat",
|
| 60 |
+
"48": "venomoth",
|
| 61 |
+
"49": "diglett",
|
| 62 |
+
"50": "dugtrio",
|
| 63 |
+
"51": "meowth",
|
| 64 |
+
"52": "persian",
|
| 65 |
+
"53": "psyduck",
|
| 66 |
+
"54": "golduck",
|
| 67 |
+
"55": "mankey",
|
| 68 |
+
"56": "primeape",
|
| 69 |
+
"57": "growlithe",
|
| 70 |
+
"58": "arcanine",
|
| 71 |
+
"59": "poliwag",
|
| 72 |
+
"60": "poliwhirl",
|
| 73 |
+
"61": "poliwrath",
|
| 74 |
+
"62": "abra",
|
| 75 |
+
"63": "kadabra",
|
| 76 |
+
"64": "alakazam",
|
| 77 |
+
"65": "machop",
|
| 78 |
+
"66": "machoke",
|
| 79 |
+
"67": "machamp",
|
| 80 |
+
"68": "bellsprout",
|
| 81 |
+
"69": "weepinbell",
|
| 82 |
+
"70": "victreebel",
|
| 83 |
+
"71": "tentacool",
|
| 84 |
+
"72": "tentacruel",
|
| 85 |
+
"73": "geodude",
|
| 86 |
+
"74": "graveler",
|
| 87 |
+
"75": "golem",
|
| 88 |
+
"76": "ponyta",
|
| 89 |
+
"77": "rapidash",
|
| 90 |
+
"78": "slowpoke",
|
| 91 |
+
"79": "slowbro",
|
| 92 |
+
"80": "magnemite",
|
| 93 |
+
"81": "magneton",
|
| 94 |
+
"82": "farfetchd",
|
| 95 |
+
"83": "doduo",
|
| 96 |
+
"84": "dodrio",
|
| 97 |
+
"85": "seel",
|
| 98 |
+
"86": "dewgong",
|
| 99 |
+
"87": "grimer",
|
| 100 |
+
"88": "muk",
|
| 101 |
+
"89": "shellder",
|
| 102 |
+
"90": "cloyster",
|
| 103 |
+
"91": "gastly",
|
| 104 |
+
"92": "haunter",
|
| 105 |
+
"93": "gengar",
|
| 106 |
+
"94": "onix",
|
| 107 |
+
"95": "drowzee",
|
| 108 |
+
"96": "hypno",
|
| 109 |
+
"97": "krabby",
|
| 110 |
+
"98": "kingler",
|
| 111 |
+
"99": "voltorb",
|
| 112 |
+
"100": "electrode",
|
| 113 |
+
"101": "exeggcute",
|
| 114 |
+
"102": "exeggutor",
|
| 115 |
+
"103": "cubone",
|
| 116 |
+
"104": "marowak",
|
| 117 |
+
"105": "hitmonlee",
|
| 118 |
+
"106": "hitmonchan",
|
| 119 |
+
"107": "lickitung",
|
| 120 |
+
"108": "koffing",
|
| 121 |
+
"109": "weezing",
|
| 122 |
+
"110": "rhyhorn",
|
| 123 |
+
"111": "rhydon",
|
| 124 |
+
"112": "chansey",
|
| 125 |
+
"113": "tangela",
|
| 126 |
+
"114": "kangaskhan",
|
| 127 |
+
"115": "horsea",
|
| 128 |
+
"116": "seadra",
|
| 129 |
+
"117": "goldeen",
|
| 130 |
+
"118": "seaking",
|
| 131 |
+
"119": "staryu",
|
| 132 |
+
"120": "starmie",
|
| 133 |
+
"121": "mr-mime",
|
| 134 |
+
"122": "scyther",
|
| 135 |
+
"123": "jynx",
|
| 136 |
+
"124": "electabuzz",
|
| 137 |
+
"125": "magmar",
|
| 138 |
+
"126": "pinsir",
|
| 139 |
+
"127": "tauros",
|
| 140 |
+
"128": "magikarp",
|
| 141 |
+
"129": "gyarados",
|
| 142 |
+
"130": "lapras",
|
| 143 |
+
"131": "ditto",
|
| 144 |
+
"132": "eevee",
|
| 145 |
+
"133": "vaporeon",
|
| 146 |
+
"134": "jolteon",
|
| 147 |
+
"135": "flareon",
|
| 148 |
+
"136": "porygon",
|
| 149 |
+
"137": "omanyte",
|
| 150 |
+
"138": "omastar",
|
| 151 |
+
"139": "kabuto",
|
| 152 |
+
"140": "kabutops",
|
| 153 |
+
"141": "aerodactyl",
|
| 154 |
+
"142": "snorlax",
|
| 155 |
+
"143": "articuno",
|
| 156 |
+
"144": "zapdos",
|
| 157 |
+
"145": "moltres",
|
| 158 |
+
"146": "dratini",
|
| 159 |
+
"147": "dragonair",
|
| 160 |
+
"148": "dragonite",
|
| 161 |
+
"149": "mewtwo",
|
| 162 |
+
"150": "mew"
|
| 163 |
+
},
|
| 164 |
+
"image_size": 224,
|
| 165 |
+
"initializer_range": 0.02,
|
| 166 |
+
"intermediate_size": 3072,
|
| 167 |
+
"label2id": {
|
| 168 |
+
"abra": 62,
|
| 169 |
+
"aerodactyl": 141,
|
| 170 |
+
"alakazam": 64,
|
| 171 |
+
"arbok": 23,
|
| 172 |
+
"arcanine": 58,
|
| 173 |
+
"articuno": 143,
|
| 174 |
+
"beedrill": 14,
|
| 175 |
+
"bellsprout": 68,
|
| 176 |
+
"blastoise": 8,
|
| 177 |
+
"bulbasaur": 0,
|
| 178 |
+
"butterfree": 11,
|
| 179 |
+
"caterpie": 9,
|
| 180 |
+
"chansey": 112,
|
| 181 |
+
"charizard": 5,
|
| 182 |
+
"charmander": 3,
|
| 183 |
+
"charmeleon": 4,
|
| 184 |
+
"clefable": 35,
|
| 185 |
+
"clefairy": 34,
|
| 186 |
+
"cloyster": 90,
|
| 187 |
+
"cubone": 103,
|
| 188 |
+
"dewgong": 86,
|
| 189 |
+
"diglett": 49,
|
| 190 |
+
"ditto": 131,
|
| 191 |
+
"dodrio": 84,
|
| 192 |
+
"doduo": 83,
|
| 193 |
+
"dragonair": 147,
|
| 194 |
+
"dragonite": 148,
|
| 195 |
+
"dratini": 146,
|
| 196 |
+
"drowzee": 95,
|
| 197 |
+
"dugtrio": 50,
|
| 198 |
+
"eevee": 132,
|
| 199 |
+
"ekans": 22,
|
| 200 |
+
"electabuzz": 124,
|
| 201 |
+
"electrode": 100,
|
| 202 |
+
"exeggcute": 101,
|
| 203 |
+
"exeggutor": 102,
|
| 204 |
+
"farfetchd": 82,
|
| 205 |
+
"fearow": 21,
|
| 206 |
+
"flareon": 135,
|
| 207 |
+
"gastly": 91,
|
| 208 |
+
"gengar": 93,
|
| 209 |
+
"geodude": 73,
|
| 210 |
+
"gloom": 43,
|
| 211 |
+
"golbat": 41,
|
| 212 |
+
"goldeen": 117,
|
| 213 |
+
"golduck": 54,
|
| 214 |
+
"golem": 75,
|
| 215 |
+
"graveler": 74,
|
| 216 |
+
"grimer": 87,
|
| 217 |
+
"growlithe": 57,
|
| 218 |
+
"gyarados": 129,
|
| 219 |
+
"haunter": 92,
|
| 220 |
+
"hitmonchan": 106,
|
| 221 |
+
"hitmonlee": 105,
|
| 222 |
+
"horsea": 115,
|
| 223 |
+
"hypno": 96,
|
| 224 |
+
"ivysaur": 1,
|
| 225 |
+
"jigglypuff": 38,
|
| 226 |
+
"jolteon": 134,
|
| 227 |
+
"jynx": 123,
|
| 228 |
+
"kabuto": 139,
|
| 229 |
+
"kabutops": 140,
|
| 230 |
+
"kadabra": 63,
|
| 231 |
+
"kakuna": 13,
|
| 232 |
+
"kangaskhan": 114,
|
| 233 |
+
"kingler": 98,
|
| 234 |
+
"koffing": 108,
|
| 235 |
+
"krabby": 97,
|
| 236 |
+
"lapras": 130,
|
| 237 |
+
"lickitung": 107,
|
| 238 |
+
"machamp": 67,
|
| 239 |
+
"machoke": 66,
|
| 240 |
+
"machop": 65,
|
| 241 |
+
"magikarp": 128,
|
| 242 |
+
"magmar": 125,
|
| 243 |
+
"magnemite": 80,
|
| 244 |
+
"magneton": 81,
|
| 245 |
+
"mankey": 55,
|
| 246 |
+
"marowak": 104,
|
| 247 |
+
"meowth": 51,
|
| 248 |
+
"metapod": 10,
|
| 249 |
+
"mew": 150,
|
| 250 |
+
"mewtwo": 149,
|
| 251 |
+
"moltres": 145,
|
| 252 |
+
"mr-mime": 121,
|
| 253 |
+
"muk": 88,
|
| 254 |
+
"nidoking": 33,
|
| 255 |
+
"nidoqueen": 30,
|
| 256 |
+
"nidoran-f": 28,
|
| 257 |
+
"nidoran-m": 31,
|
| 258 |
+
"nidorina": 29,
|
| 259 |
+
"nidorino": 32,
|
| 260 |
+
"ninetales": 37,
|
| 261 |
+
"oddish": 42,
|
| 262 |
+
"omanyte": 137,
|
| 263 |
+
"omastar": 138,
|
| 264 |
+
"onix": 94,
|
| 265 |
+
"paras": 45,
|
| 266 |
+
"parasect": 46,
|
| 267 |
+
"persian": 52,
|
| 268 |
+
"pidgeot": 17,
|
| 269 |
+
"pidgeotto": 16,
|
| 270 |
+
"pidgey": 15,
|
| 271 |
+
"pikachu": 24,
|
| 272 |
+
"pinsir": 126,
|
| 273 |
+
"poliwag": 59,
|
| 274 |
+
"poliwhirl": 60,
|
| 275 |
+
"poliwrath": 61,
|
| 276 |
+
"ponyta": 76,
|
| 277 |
+
"porygon": 136,
|
| 278 |
+
"primeape": 56,
|
| 279 |
+
"psyduck": 53,
|
| 280 |
+
"raichu": 25,
|
| 281 |
+
"rapidash": 77,
|
| 282 |
+
"raticate": 19,
|
| 283 |
+
"rattata": 18,
|
| 284 |
+
"rhydon": 111,
|
| 285 |
+
"rhyhorn": 110,
|
| 286 |
+
"sandshrew": 26,
|
| 287 |
+
"sandslash": 27,
|
| 288 |
+
"scyther": 122,
|
| 289 |
+
"seadra": 116,
|
| 290 |
+
"seaking": 118,
|
| 291 |
+
"seel": 85,
|
| 292 |
+
"shellder": 89,
|
| 293 |
+
"slowbro": 79,
|
| 294 |
+
"slowpoke": 78,
|
| 295 |
+
"snorlax": 142,
|
| 296 |
+
"spearow": 20,
|
| 297 |
+
"squirtle": 6,
|
| 298 |
+
"starmie": 120,
|
| 299 |
+
"staryu": 119,
|
| 300 |
+
"tangela": 113,
|
| 301 |
+
"tauros": 127,
|
| 302 |
+
"tentacool": 71,
|
| 303 |
+
"tentacruel": 72,
|
| 304 |
+
"vaporeon": 133,
|
| 305 |
+
"venomoth": 48,
|
| 306 |
+
"venonat": 47,
|
| 307 |
+
"venusaur": 2,
|
| 308 |
+
"victreebel": 70,
|
| 309 |
+
"vileplume": 44,
|
| 310 |
+
"voltorb": 99,
|
| 311 |
+
"vulpix": 36,
|
| 312 |
+
"wartortle": 7,
|
| 313 |
+
"weedle": 12,
|
| 314 |
+
"weepinbell": 69,
|
| 315 |
+
"weezing": 109,
|
| 316 |
+
"wigglytuff": 39,
|
| 317 |
+
"zapdos": 144,
|
| 318 |
+
"zubat": 40
|
| 319 |
+
},
|
| 320 |
+
"layer_norm_eps": 1e-12,
|
| 321 |
+
"model_type": "vit",
|
| 322 |
+
"num_attention_heads": 12,
|
| 323 |
+
"num_channels": 3,
|
| 324 |
+
"num_hidden_layers": 12,
|
| 325 |
+
"patch_size": 16,
|
| 326 |
+
"problem_type": "single_label_classification",
|
| 327 |
+
"qkv_bias": true,
|
| 328 |
+
"torch_dtype": "float32",
|
| 329 |
+
"transformers_version": "4.25.1"
|
| 330 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2929fbc8787b6ec07f9d2dcafa6d39aec7fdced704654792999929621ca402e
|
| 3 |
+
size 343727021
|