leonleyang commited on
Commit
b194020
·
verified ·
1 Parent(s): ed941a0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ {}
3
+ ---
4
+
5
+ # Dataset Card for ImageNet100
6
+
7
+ <!-- Provide a quick summary of the dataset. -->
8
+
9
+ ## Dataset Details
10
+
11
+ ### Dataset Description
12
+
13
+ <!-- Provide a longer summary of what this dataset is. -->
14
+ ImageNet100 is a subset of ImageNet (ILSVRC2012) containing only 100 classes.
15
+
16
+ ### Dataset Sources
17
+
18
+ <!-- Provide the basic links for the dataset. -->
19
+ Unknown
20
+
21
+ ## Dataset Structure
22
+
23
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
24
+
25
+ Total images: 131,689
26
+
27
+ Classes: 100 categories
28
+
29
+ Splits:
30
+
31
+ - **Train:** 126,689 images
32
+
33
+ - **Validation:** 5,000 images
34
+
35
+ Image specs: Variable resolution, RGB
36
+
37
+ ## Example Usage
38
+ Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
39
+ ```
40
+ from datasets import load_dataset
41
+
42
+ # Load the dataset
43
+ dataset = load_dataset("randall-lab/imagenet100", split="train", trust_remote_code=True)
44
+ # dataset = load_dataset("randall-lab/imagenet100", split="validation", trust_remote_code=True)
45
+
46
+ # Access a sample from the dataset
47
+ example = dataset[0]
48
+ image = example["image"]
49
+ label = example["label"]
50
+
51
+ image.show() # Display the image
52
+ print(f"Label: {label}")
53
+ ```
54
+
55
+ ## Citation
56
+
57
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
58
+
59
+ Unknown