Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
|
3 |
+
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
|
4 |
+
{}
|
5 |
+
---
|
6 |
+
|
7 |
+
# Dataset Card for Caltech-UCSD Birds-200-2011 (CUB-200-2011)
|
8 |
+
|
9 |
+
<!-- Provide a quick summary of the dataset. -->
|
10 |
+
|
11 |
+
## Dataset Details
|
12 |
+
|
13 |
+
### Dataset Description
|
14 |
+
|
15 |
+
<!-- Provide a longer summary of what this dataset is. -->
|
16 |
+
The CUB-200-2011 dataset is designed for fine-grained bird species classification. It contains 11,788 images of 200 bird species, each labeled with its corresponding category. The dataset is widely used in fine-grained image classification and computer vision research.
|
17 |
+
|
18 |
+
### Dataset Sources
|
19 |
+
|
20 |
+
<!-- Provide the basic links for the dataset. -->
|
21 |
+
|
22 |
+
- **Homepage:** https://www.vision.caltech.edu/datasets/cub_200_2011/
|
23 |
+
- **Paper:** Wah, C., Branson, S., Welinder, P., Perona, P., & Belongie, S. (2011). The caltech-ucsd birds-200-2011 dataset.
|
24 |
+
|
25 |
+
## Dataset Structure
|
26 |
+
|
27 |
+
<!-- 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. -->
|
28 |
+
|
29 |
+
Each sample in the dataset contains:
|
30 |
+
|
31 |
+
- **image:** A variable-sized RGB image
|
32 |
+
|
33 |
+
- **label:** An integer between 0 and 199, representing the bird species
|
34 |
+
|
35 |
+
Total images: 11,788
|
36 |
+
|
37 |
+
Classes: 200 (each corresponding to a bird species)
|
38 |
+
|
39 |
+
Splits:
|
40 |
+
|
41 |
+
- **Train:** 5,994 images
|
42 |
+
|
43 |
+
- **Test:** 5,794 images
|
44 |
+
|
45 |
+
Image specs: Variable sizes, RGB
|
46 |
+
|
47 |
+
## Example Usage
|
48 |
+
Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
|
49 |
+
```
|
50 |
+
from datasets import load_dataset
|
51 |
+
|
52 |
+
# Load the dataset
|
53 |
+
dataset = load_dataset("../../aidatasets/images/cub200.py", split="train", trust_remote_code=True)
|
54 |
+
# dataset = load_dataset("../../aidatasets/images/cub200.py", split="test", trust_remote_code=True)
|
55 |
+
|
56 |
+
# Access a sample from the dataset
|
57 |
+
example = dataset[0]
|
58 |
+
image = example["image"]
|
59 |
+
label = example["label"]
|
60 |
+
|
61 |
+
image.show() # Display the image
|
62 |
+
print(f"Label: {label}")
|
63 |
+
```
|
64 |
+
|
65 |
+
## Citation
|
66 |
+
|
67 |
+
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
68 |
+
|
69 |
+
**BibTeX:**
|
70 |
+
|
71 |
+
@article{wah2011caltech,
|
72 |
+
title={The caltech-ucsd birds-200-2011 dataset},
|
73 |
+
author={Wah, Catherine and Branson, Steve and Welinder, Peter and Perona, Pietro and Belongie, Serge},
|
74 |
+
year={2011},
|
75 |
+
publisher={California Institute of Technology}
|
76 |
+
}
|