class_id int64 0 999 | class_name stringlengths 2 121 | repo_id stringlengths 18 131 |
|---|---|---|
0 | tench, Tinca tinca | mlnomad/imnet1k_tench_Tinca_tinca |
1 | goldfish, Carassius auratus | mlnomad/imnet1k_goldfish_Carassius_auratus |
2 | great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias | mlnomad/imnet1k_great_white_shark_white_shark_man-eater_man-eating_shark_Carcharodon_carcharias |
3 | tiger shark, Galeocerdo cuvieri | mlnomad/imnet1k_tiger_shark_Galeocerdo_cuvieri |
4 | hammerhead, hammerhead shark | mlnomad/imnet1k_hammerhead_hammerhead_shark |
5 | electric ray, crampfish, numbfish, torpedo | mlnomad/imnet1k_electric_ray_crampfish_numbfish_torpedo |
6 | stingray | mlnomad/imnet1k_stingray |
7 | cock | mlnomad/imnet1k_cock |
8 | hen | mlnomad/imnet1k_hen |
9 | ostrich, Struthio camelus | mlnomad/imnet1k_ostrich_Struthio_camelus |
10 | brambling, Fringilla montifringilla | mlnomad/imnet1k_brambling_Fringilla_montifringilla |
11 | goldfinch, Carduelis carduelis | mlnomad/imnet1k_goldfinch_Carduelis_carduelis |
12 | house finch, linnet, Carpodacus mexicanus | mlnomad/imnet1k_house_finch_linnet_Carpodacus_mexicanus |
13 | junco, snowbird | mlnomad/imnet1k_junco_snowbird |
14 | indigo bunting, indigo finch, indigo bird, Passerina cyanea | mlnomad/imnet1k_indigo_bunting_indigo_finch_indigo_bird_Passerina_cyanea |
15 | robin, American robin, Turdus migratorius | mlnomad/imnet1k_robin_American_robin_Turdus_migratorius |
16 | bulbul | mlnomad/imnet1k_bulbul |
17 | jay | mlnomad/imnet1k_jay |
18 | magpie | mlnomad/imnet1k_magpie |
19 | chickadee | mlnomad/imnet1k_chickadee |
20 | water ouzel, dipper | mlnomad/imnet1k_water_ouzel_dipper |
21 | kite | mlnomad/imnet1k_kite |
22 | bald eagle, American eagle, Haliaeetus leucocephalus | mlnomad/imnet1k_bald_eagle_American_eagle_Haliaeetus_leucocephalus |
23 | vulture | mlnomad/imnet1k_vulture |
24 | great grey owl, great gray owl, Strix nebulosa | mlnomad/imnet1k_great_grey_owl_great_gray_owl_Strix_nebulosa |
25 | European fire salamander, Salamandra salamandra | mlnomad/imnet1k_European_fire_salamander_Salamandra_salamandra |
26 | common newt, Triturus vulgaris | mlnomad/imnet1k_common_newt_Triturus_vulgaris |
27 | eft | mlnomad/imnet1k_eft |
28 | spotted salamander, Ambystoma maculatum | mlnomad/imnet1k_spotted_salamander_Ambystoma_maculatum |
29 | axolotl, mud puppy, Ambystoma mexicanum | mlnomad/imnet1k_axolotl_mud_puppy_Ambystoma_mexicanum |
30 | bullfrog, Rana catesbeiana | mlnomad/imnet1k_bullfrog_Rana_catesbeiana |
31 | tree frog, tree-frog | mlnomad/imnet1k_tree_frog_tree-frog |
32 | tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui | mlnomad/imnet1k_tailed_frog_bell_toad_ribbed_toad_tailed_toad_Ascaphus_trui |
33 | loggerhead, loggerhead turtle, Caretta caretta | mlnomad/imnet1k_loggerhead_loggerhead_turtle_Caretta_caretta |
34 | leatherback turtle, leatherback, leathery turtle, Dermochelys coriacea | mlnomad/imnet1k_leatherback_turtle_leatherback_leathery_turtle_Dermochelys_coriacea |
35 | mud turtle | mlnomad/imnet1k_mud_turtle |
36 | terrapin | mlnomad/imnet1k_terrapin |
37 | box turtle, box tortoise | mlnomad/imnet1k_box_turtle_box_tortoise |
38 | banded gecko | mlnomad/imnet1k_banded_gecko |
39 | common iguana, iguana, Iguana iguana | mlnomad/imnet1k_common_iguana_iguana_Iguana_iguana |
40 | American chameleon, anole, Anolis carolinensis | mlnomad/imnet1k_American_chameleon_anole_Anolis_carolinensis |
41 | whiptail, whiptail lizard | mlnomad/imnet1k_whiptail_whiptail_lizard |
42 | agama | mlnomad/imnet1k_agama |
43 | frilled lizard, Chlamydosaurus kingi | mlnomad/imnet1k_frilled_lizard_Chlamydosaurus_kingi |
44 | alligator lizard | mlnomad/imnet1k_alligator_lizard |
45 | Gila monster, Heloderma suspectum | mlnomad/imnet1k_Gila_monster_Heloderma_suspectum |
46 | green lizard, Lacerta viridis | mlnomad/imnet1k_green_lizard_Lacerta_viridis |
47 | African chameleon, Chamaeleo chamaeleon | mlnomad/imnet1k_African_chameleon_Chamaeleo_chamaeleon |
48 | Komodo dragon, Komodo lizard, dragon lizard, giant lizard, Varanus komodoensis | mlnomad/imnet1k_Komodo_dragon_Komodo_lizard_dragon_lizard_giant_lizard_Varanus_komodoensis |
49 | African crocodile, Nile crocodile, Crocodylus niloticus | mlnomad/imnet1k_African_crocodile_Nile_crocodile_Crocodylus_niloticus |
50 | American alligator, Alligator mississipiensis | mlnomad/imnet1k_American_alligator_Alligator_mississipiensis |
51 | triceratops | mlnomad/imnet1k_triceratops |
52 | thunder snake, worm snake, Carphophis amoenus | mlnomad/imnet1k_thunder_snake_worm_snake_Carphophis_amoenus |
53 | ringneck snake, ring-necked snake, ring snake | mlnomad/imnet1k_ringneck_snake_ring-necked_snake_ring_snake |
54 | hognose snake, puff adder, sand viper | mlnomad/imnet1k_hognose_snake_puff_adder_sand_viper |
55 | green snake, grass snake | mlnomad/imnet1k_green_snake_grass_snake |
56 | king snake, kingsnake | mlnomad/imnet1k_king_snake_kingsnake |
57 | garter snake, grass snake | mlnomad/imnet1k_garter_snake_grass_snake |
58 | water snake | mlnomad/imnet1k_water_snake |
59 | vine snake | mlnomad/imnet1k_vine_snake |
60 | night snake, Hypsiglena torquata | mlnomad/imnet1k_night_snake_Hypsiglena_torquata |
61 | boa constrictor, Constrictor constrictor | mlnomad/imnet1k_boa_constrictor_Constrictor_constrictor |
62 | rock python, rock snake, Python sebae | mlnomad/imnet1k_rock_python_rock_snake_Python_sebae |
63 | Indian cobra, Naja naja | mlnomad/imnet1k_Indian_cobra_Naja_naja |
64 | green mamba | mlnomad/imnet1k_green_mamba |
65 | sea snake | mlnomad/imnet1k_sea_snake |
66 | horned viper, cerastes, sand viper, horned asp, Cerastes cornutus | mlnomad/imnet1k_horned_viper_cerastes_sand_viper_horned_asp_Cerastes_cornutus |
67 | diamondback, diamondback rattlesnake, Crotalus adamanteus | mlnomad/imnet1k_diamondback_diamondback_rattlesnake_Crotalus_adamanteus |
68 | sidewinder, horned rattlesnake, Crotalus cerastes | mlnomad/imnet1k_sidewinder_horned_rattlesnake_Crotalus_cerastes |
69 | trilobite | mlnomad/imnet1k_trilobite |
70 | harvestman, daddy longlegs, Phalangium opilio | mlnomad/imnet1k_harvestman_daddy_longlegs_Phalangium_opilio |
71 | scorpion | mlnomad/imnet1k_scorpion |
72 | black and gold garden spider, Argiope aurantia | mlnomad/imnet1k_black_and_gold_garden_spider_Argiope_aurantia |
73 | barn spider, Araneus cavaticus | mlnomad/imnet1k_barn_spider_Araneus_cavaticus |
74 | garden spider, Aranea diademata | mlnomad/imnet1k_garden_spider_Aranea_diademata |
75 | black widow, Latrodectus mactans | mlnomad/imnet1k_black_widow_Latrodectus_mactans |
76 | tarantula | mlnomad/imnet1k_tarantula |
77 | wolf spider, hunting spider | mlnomad/imnet1k_wolf_spider_hunting_spider |
78 | tick | mlnomad/imnet1k_tick |
79 | centipede | mlnomad/imnet1k_centipede |
80 | black grouse | mlnomad/imnet1k_black_grouse |
81 | ptarmigan | mlnomad/imnet1k_ptarmigan |
82 | ruffed grouse, partridge, Bonasa umbellus | mlnomad/imnet1k_ruffed_grouse_partridge_Bonasa_umbellus |
83 | prairie chicken, prairie grouse, prairie fowl | mlnomad/imnet1k_prairie_chicken_prairie_grouse_prairie_fowl |
84 | peacock | mlnomad/imnet1k_peacock |
85 | quail | mlnomad/imnet1k_quail |
86 | partridge | mlnomad/imnet1k_partridge |
87 | African grey, African gray, Psittacus erithacus | mlnomad/imnet1k_African_grey_African_gray_Psittacus_erithacus |
88 | macaw | mlnomad/imnet1k_macaw |
89 | sulphur-crested cockatoo, Kakatoe galerita, Cacatua galerita | mlnomad/imnet1k_sulphur-crested_cockatoo_Kakatoe_galerita_Cacatua_galerita |
90 | lorikeet | mlnomad/imnet1k_lorikeet |
91 | coucal | mlnomad/imnet1k_coucal |
92 | bee eater | mlnomad/imnet1k_bee_eater |
93 | hornbill | mlnomad/imnet1k_hornbill |
94 | hummingbird | mlnomad/imnet1k_hummingbird |
95 | jacamar | mlnomad/imnet1k_jacamar |
96 | toucan | mlnomad/imnet1k_toucan |
97 | drake | mlnomad/imnet1k_drake |
98 | red-breasted merganser, Mergus serrator | mlnomad/imnet1k_red-breasted_merganser_Mergus_serrator |
99 | goose | mlnomad/imnet1k_goose |
ImageNet-1k Individual Class Datasets Hub
This dataset serves as a central hub and index for the 1,000 individual class datasets derived from the original imagenet-1k dataset. Each class has been separated into its own repository for easy access and analysis.
This repository does not contain any images itself. Instead, it provides a class_mapping.csv file that maps each class ID and name to its corresponding dataset repository on the Hugging Face Hub.
How to Use
The intended workflow is to use this repository to find the repo_id for a class you are interested in, and then load that specific dataset.
1. Load the Class Mapping File
First, load the class_mapping.csv file from this repository. You can do this directly using pandas.
import pandas as pd
from datasets import load_dataset
# Load the mapping file from the Hub
mapping_csv_url = "[https://huggingface.co/datasets/](https://huggingface.co/datasets/)mlnomad/imagenet1k_classes/resolve/main/class_mapping.csv"
class_df = pd.read_csv(mapping_csv_url)
print("Class mapping loaded. Here's a preview:")
print(class_df.head())
2. Find and Load a Specific Class Dataset
Once you have the class_df DataFrame, you can easily find the repository for any class and load it using datasets.load_dataset.
Example: Loading the 'goldfish' class
# Find the entry for 'goldfish'
# The class names can be long, so we use .str.contains() for a flexible search
goldfish_entry = class_df[class_df['class_name'].str.contains("goldfish", case=False)]
if not goldfish_entry.empty:
# Get the repo_id from the DataFrame
goldfish_repo_id = goldfish_entry.iloc[0]['repo_id']
print(f"Found 'goldfish' dataset at: {goldfish_repo_id}")
# Load the actual dataset containing the images
print("Loading dataset...")
goldfish_dataset = load_dataset(goldfish_repo_id)
print("\nSuccessfully loaded!")
print(goldfish_dataset)
# You can now access the images
# example_image = goldfish_dataset['train'][0]['image']
# example_image.show()
else:
print("Could not find the 'goldfish' class.")
Class Mapping Preview (class_mapping.csv)
Here are the first 10 entries in the mapping file:
| class_id | class_name | repo_id |
|-----------:|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|
| 0 | tench, Tinca tinca | mlnomad/imnet1k_tench_Tinca_tinca |
| 1 | goldfish, Carassius auratus | mlnomad/imnet1k_goldfish_Carassius_auratus |
| 2 | great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias | mlnomad/imnet1k_great_white_shark_white_shark_man-eater_man-eating_shark_Carcharodon_carcharias |
| 3 | tiger shark, Galeocerdo cuvieri | mlnomad/imnet1k_tiger_shark_Galeocerdo_cuvieri |
| 4 | hammerhead, hammerhead shark | mlnomad/imnet1k_hammerhead_hammerhead_shark |
| 5 | electric ray, crampfish, numbfish, torpedo | mlnomad/imnet1k_electric_ray_crampfish_numbfish_torpedo |
| 6 | stingray | mlnomad/imnet1k_stingray |
| 7 | cock | mlnomad/imnet1k_cock |
| 8 | hen | mlnomad/imnet1k_hen |
| 9 | ostrich, Struthio camelus | mlnomad/imnet1k_ostrich_Struthio_camelus |
- Downloads last month
- 8