ArinRoths commited on
Commit
bd241e6
·
verified ·
1 Parent(s): 8109064

Document the prepared classroom dataset

Browse files
Files changed (1) hide show
  1. README.md +122 -0
README.md CHANGED
@@ -36,4 +36,126 @@ configs:
36
  path: data/validation-*
37
  - split: test
38
  path: data/test-*
 
 
 
 
 
 
 
 
39
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  path: data/validation-*
37
  - split: test
38
  path: data/test-*
39
+ task_categories:
40
+ - image-classification
41
+ pretty_name: '24-679 (Fall 2026): Stairs Verse Non-Stair Images'
42
+ tags:
43
+ - image
44
+ - education
45
+ - 24-679
46
+ - data-augmentation
47
  ---
48
+
49
+ # 24-679 (Fall 2026): Stairs and Non-Stair Images
50
+
51
+ ArinRoths/Photo_Dataset
52
+
53
+ Photos of stairs and non-stairs scenes, prepared as square RGB images with multiple separately
54
+ generated training variants. The goal of this dataset is to classify whether or not stairs are
55
+ present in an image.
56
+
57
+ ## Source and task
58
+
59
+ The original dataset contains 32 images that I collected and organized into `stairs` and
60
+ `non_stairs` folders. There are 16 original stairs images and 16 original non-stairs images.
61
+ The folder containing each image determines its label. **0 = non-stairs; 1 = stairs.**
62
+
63
+ Course: 24-679, Fall 2026, Carnegie Mellon University. Repository maintainer: the account shown above.
64
+
65
+ ## Fields
66
+
67
+ | Field | Meaning and modeling role |
68
+ |---|---|
69
+ | `image` | Prepared RGB pixels; the model's image input. |
70
+ | `label` | Classification target: 0 = non-stairs; 1 = stairs. |
71
+ | `label_name` | Readable target description; exclude from model inputs. |
72
+ | `source_id`, `parent_id` | Unique prepared/augmented example key and its original source key; provenance only. |
73
+ | `augmentation`, `is_augmented` | Method identifier and random-augmentation flag; provenance only. |
74
+
75
+ ## Splits and original-source counts
76
+
77
+ These counts are computed from the packaged splits for this run.
78
+
79
+ | Split | Original rows | Synthetic rows | Total rows |
80
+ |---|---:|---:|---:|
81
+ | train | 22 | 352 | 374 |
82
+ | validation | 5 | 0 | 5 |
83
+ | test | 5 | 0 | 5 |
84
+
85
+ Class counts include synthetic rows in training only.
86
+
87
+ | Split | Label | Rows |
88
+ |---|---:|---:|
89
+ | train | 0 | 187 |
90
+ | train | 1 | 187 |
91
+ | validation | 0 | 2 |
92
+ | validation | 1 | 3 |
93
+ | test | 0 | 3 |
94
+ | test | 1 | 2 |
95
+
96
+ Requested holdout fraction: 30%; test receives 50% of that holdout.
97
+ Small-sample rounding changes the realized proportions. The first split uses seed 24679, and the
98
+ holdout split uses seed 24680.
99
+
100
+ Split original image indices with class stratification before creating any random variants.
101
+ Validation and test contain only unaugmented prepared parents. A source and its descendants never
102
+ cross boundaries. The augmented rows are not split again.
103
+
104
+ ## Augmentation and preprocessing
105
+
106
+ Prepared image size in this run: **224 × 224 RGB**. Padding color is **(128, 128, 128)**.
107
+
108
+ All splits receive the same deterministic preparation: apply EXIF orientation, convert to RGB,
109
+ resize while preserving aspect ratio, and pad to the configured square size. Working copies discard
110
+ camera metadata; native source files remain separate. Downstream models still need their own
111
+ checkpoint-specific input processing.
112
+
113
+ Each original training source contributes its prepared parent and sixteen independent variants;
114
+ transforms are not stacked. Four variants are created using each augmentation method: brightness,
115
+ rotation, contrast, and Gaussian blur. The current notebook uses brightness factors 0.4–0.7 or
116
+ 1.4–2.0; rotation of 15–30 degrees in either direction on a fixed canvas; contrast factors
117
+ 0.35–0.65 or 1.5–2.2; and Gaussian blur. Lower/higher brightness and contrast ranges are chosen
118
+ with equal probability. Rotation fills exposed corners with a color derived from the parent and
119
+ can clip edges.
120
+
121
+ The stored identifiers `mild_brightness`, `small_rotation`, `mild_contrast`, and
122
+ `mild_gaussian_blur` refer to the four augmentation methods used in the notebook.
123
+
124
+ | Training method | Stored rows |
125
+ |---|---:|
126
+ | `mild_brightness` | 88 |
127
+ | `mild_contrast` | 88 |
128
+ | `mild_gaussian_blur` | 88 |
129
+ | `none` | 22 |
130
+ | `small_rotation` | 88 |
131
+
132
+ ## Intended use and limitations
133
+
134
+ This dataset is intended for image classification and for practicing image preparation,
135
+ augmentation, and transfer learning. The original collection is small, with only 32 independent
136
+ images. Backgrounds, lighting, camera angles, and differences between locations could affect the
137
+ model instead of only the presence of stairs. Brightness and contrast changes can hide details,
138
+ rotation can crop parts of an image, and blur can make stairs harder to see. The augmented images
139
+ also do not add new independent scenes because they are all based on the original training images.
140
+ The parent and variant galleries should be inspected to make sure the augmentations still preserve
141
+ the correct label.
142
+
143
+ ## Privacy and licensing
144
+
145
+ The packaged dataset does not include the original image filenames. The preparation workflow uses
146
+ anonymous source IDs, and prepared image bytes do not retain camera metadata. The images were
147
+ reviewed to avoid including faces, people, or other personally identifiable or sensitive
148
+ information. No license was specified for this dataset.
149
+
150
+ ## Load and compare
151
+
152
+ ```python
153
+ from datasets import load_dataset
154
+ ds = load_dataset("ArinRoths/Photo_Dataset")
155
+ # Train with ds["train"], choose settings with ds["validation"], then score ds["test"].
156
+ ```
157
+
158
+ Use an account with access if repository visibility changes. For reproducible comparisons, record the
159
+ dataset commit and model/environment versions. Regenerate this card with the preparation notebook after
160
+ changing the data; its counts are calculated from the actual packaged splits. The YAML schema and split
161
+ configuration are preserved from the upload.