File size: 2,475 Bytes
e02d8d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
{}
---

# Dataset Card for Caltech-UCSD Birds-200-2011 (CUB-200-2011)

<!-- Provide a quick summary of the dataset. -->

## Dataset Details

### Dataset Description

<!-- Provide a longer summary of what this dataset is. -->
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.

### Dataset Sources

<!-- Provide the basic links for the dataset. -->

- **Homepage:** https://www.vision.caltech.edu/datasets/cub_200_2011/
- **Paper:** Wah, C., Branson, S., Welinder, P., Perona, P., & Belongie, S. (2011). The caltech-ucsd birds-200-2011 dataset.

## Dataset Structure

<!-- 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. -->

Each sample in the dataset contains:

- **image:** A variable-sized RGB image

- **label:** An integer between 0 and 199, representing the bird species

Total images: 11,788

Classes: 200 (each corresponding to a bird species)

Splits:

- **Train:** 5,994 images

- **Test:** 5,794 images

Image specs: Variable sizes, RGB

## Example Usage
Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
```
from datasets import load_dataset  

# Load the dataset  
dataset = load_dataset("../../aidatasets/images/cub200.py", split="train", trust_remote_code=True)
# dataset = load_dataset("../../aidatasets/images/cub200.py", split="test", trust_remote_code=True)  

# Access a sample from the dataset  
example = dataset[0]  
image = example["image"]  
label = example["label"]  

image.show()  # Display the image  
print(f"Label: {label}")
```

## Citation

<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->

**BibTeX:**

@article{wah2011caltech,
  title={The caltech-ucsd birds-200-2011 dataset},
  author={Wah, Catherine and Branson, Steve and Welinder, Peter and Perona, Pietro and Belongie, Serge},
  year={2011},
  publisher={California Institute of Technology}
}