File size: 2,201 Bytes
1ab7e33
0f52fe9
 
 
 
1ab7e33
0f52fe9
 
 
 
 
 
1fc0d70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0f52fe9
1fc0d70
 
 
 
 
 
 
 
 
 
 
0f52fe9
1fc0d70
30082b7
0f52fe9
1fc0d70
6471eba
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
---
pretty_name: Baby Yoda LEGO Presence (224×224)
tags: [image, classification, augmentation, education]
license: cc-by-4.0
task_categories: [image-classification]
---

# Baby Yoda LEGO Presence (224×224)

Binary image dataset indicating whether an image **contains a Baby Yoda LEGO** figure.


## Composition & Collection
- **Creators:** Student-captured photos by the dataset author for an academic assignment.
- **Subjects:** Desktop/object scenes that may contain a Baby Yoda LEGO figure.
- **Original count:** {orig_n} images (≥30 required).
- **Resolution / format:** Center-cropped square, resized to **224×224**, saved as JPEG.
- **Privacy:** No faces or personally identifiable information (PII) included.

## Labels
Binary target from folder names:
- `has_baby_yoda` (label = 0)
- `no_baby_yoda` (label = 1)



## Preprocessing
1. Decode `.heic/.jpg/.jpeg/.png` (HEIC via `pillow-heif`).
2. Center-crop to square using `min(width, height)`.
3. Resize to **224×224** with bilinear interpolation.
4. Save as JPEG (quality≈92).

## Augmentation (label-preserving)
Performed offline to create the `augmented` split (no generative models):
- `RandomResizedCrop(size=224, scale=(0.7, 1.0), ratio=(0.75, 1.33))`
- `RandomHorizontalFlip(p=0.5)`
- `RandomVerticalFlip(p=0.1)`
- `RandomRotation(±15°, bilinear)`
- `ColorJitter(brightness=0.2, contrast=0.2, saturation=0.15, hue=0.05)`
- `RandomErasing(p=0.2, scale=(0.02, 0.08), ratio=(0.3, 3.3))`

These transformations do not change whether Baby Yoda is present.

## Splits
- `original`: {orig_n} resized images (224×224)
- `augmented`: {aug_n} synthetic, label-preserving variants (≥300 total)

## Intended Use / Limits
- **Use:** Classroom demos, practice with CV pipelines, small experiments.
- **Not for:** Benchmarks or production systems (limited scope/diversity).
- **Caveats:** Background/lighting vary; class balance may be modest.

## Ethical Notes
- No people or PII.
- Images are student-created and used for coursework.

## Licensing
- **CC-BY-4.0** for the dataset and documentation. 

## AI Usage Disclosure
Code was refactored from in class image dataset example, GenAI was used to assist with refactoring and comments