Datasets:
image image | label int64 | label_name string | source_id string | parent_id string | original_filename string | crop_mode string | augmentation string | is_augmented bool |
|---|---|---|---|---|---|---|---|---|
0 | no_water | place_no_water_008 | place_no_water_008 | IMG_4722.HEIC | center | none | false | |
1 | water | place_water_007 | place_water_007 | IMG_5563.HEIC | center | none | false | |
1 | water | place_water_002 | place_water_002 | IMG_0003.HEIC | center | none | false | |
1 | water | place_water_016 | place_water_016 | IMG_9188.HEIC | center | none | false | |
0 | no_water | place_no_water_003 | place_no_water_003 | IMG_3072.HEIC | center | none | false | |
0 | no_water | place_no_water_007 | place_no_water_007 | IMG_4563.HEIC | center | none | false | |
1 | water | place_water_012 | place_water_012 | IMG_6096.HEIC | center | none | false | |
1 | water | place_water_004 | place_water_004 | IMG_3445.HEIC | center | none | false | |
0 | no_water | place_no_water_010 | place_no_water_010 | IMG_4783.HEIC | center | none | false | |
0 | no_water | place_no_water_006 | place_no_water_006 | IMG_3773.HEIC | center | none | false | |
0 | no_water | place_no_water_013 | place_no_water_013 | IMG_5890.HEIC | center | none | false | |
1 | water | place_water_006 | place_water_006 | IMG_4817.HEIC | center | none | false | |
0 | no_water | place_no_water_016 | place_no_water_016 | IMG_9182.HEIC | center | none | false | |
0 | no_water | place_no_water_009 | place_no_water_009 | IMG_4750.HEIC | center | none | false | |
1 | water | place_water_001 | place_water_001 | 12416.JPG | center | none | false | |
1 | water | place_water_010 | place_water_010 | IMG_5941.HEIC | center | none | false | |
1 | water | place_water_005 | place_water_005 | IMG_3826.heic | center | none | false | |
1 | water | place_water_003 | place_water_003 | IMG_0498.HEIC | bottom | none | false | |
0 | no_water | place_no_water_011 | place_no_water_011 | IMG_5508.HEIC | center | none | false | |
0 | no_water | place_no_water_012 | place_no_water_012 | IMG_5830.HEIC | center | none | false | |
0 | no_water | place_no_water_005 | place_no_water_005 | IMG_3581.HEIC | center | none | false | |
1 | water | place_water_011 | place_water_011 | IMG_6060.HEIC | center | none | false | |
0 | no_water | place_no_water_004 | place_no_water_004 | IMG_3200.HEIC | center | none | false | |
0 | no_water | place_no_water_008__horizontal_flip_00 | place_no_water_008 | IMG_4722.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_008__small_rotation_01 | place_no_water_008 | IMG_4722.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_008__brightness_contrast_02 | place_no_water_008 | IMG_4722.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_008__colour_jitter_03 | place_no_water_008 | IMG_4722.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_008__horizontal_flip_04 | place_no_water_008 | IMG_4722.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_008__small_rotation_05 | place_no_water_008 | IMG_4722.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_008__brightness_contrast_06 | place_no_water_008 | IMG_4722.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_008__colour_jitter_07 | place_no_water_008 | IMG_4722.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_008__horizontal_flip_08 | place_no_water_008 | IMG_4722.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_008__small_rotation_09 | place_no_water_008 | IMG_4722.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_008__brightness_contrast_10 | place_no_water_008 | IMG_4722.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_008__colour_jitter_11 | place_no_water_008 | IMG_4722.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_008__horizontal_flip_12 | place_no_water_008 | IMG_4722.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_008__small_rotation_13 | place_no_water_008 | IMG_4722.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_008__brightness_contrast_14 | place_no_water_008 | IMG_4722.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_008__colour_jitter_15 | place_no_water_008 | IMG_4722.HEIC | center | colour_jitter | true | |
1 | water | place_water_007__horizontal_flip_00 | place_water_007 | IMG_5563.HEIC | center | horizontal_flip | true | |
1 | water | place_water_007__small_rotation_01 | place_water_007 | IMG_5563.HEIC | center | small_rotation | true | |
1 | water | place_water_007__brightness_contrast_02 | place_water_007 | IMG_5563.HEIC | center | brightness_contrast | true | |
1 | water | place_water_007__colour_jitter_03 | place_water_007 | IMG_5563.HEIC | center | colour_jitter | true | |
1 | water | place_water_007__horizontal_flip_04 | place_water_007 | IMG_5563.HEIC | center | horizontal_flip | true | |
1 | water | place_water_007__small_rotation_05 | place_water_007 | IMG_5563.HEIC | center | small_rotation | true | |
1 | water | place_water_007__brightness_contrast_06 | place_water_007 | IMG_5563.HEIC | center | brightness_contrast | true | |
1 | water | place_water_007__colour_jitter_07 | place_water_007 | IMG_5563.HEIC | center | colour_jitter | true | |
1 | water | place_water_007__horizontal_flip_08 | place_water_007 | IMG_5563.HEIC | center | horizontal_flip | true | |
1 | water | place_water_007__small_rotation_09 | place_water_007 | IMG_5563.HEIC | center | small_rotation | true | |
1 | water | place_water_007__brightness_contrast_10 | place_water_007 | IMG_5563.HEIC | center | brightness_contrast | true | |
1 | water | place_water_007__colour_jitter_11 | place_water_007 | IMG_5563.HEIC | center | colour_jitter | true | |
1 | water | place_water_007__horizontal_flip_12 | place_water_007 | IMG_5563.HEIC | center | horizontal_flip | true | |
1 | water | place_water_007__small_rotation_13 | place_water_007 | IMG_5563.HEIC | center | small_rotation | true | |
1 | water | place_water_007__brightness_contrast_14 | place_water_007 | IMG_5563.HEIC | center | brightness_contrast | true | |
1 | water | place_water_007__colour_jitter_15 | place_water_007 | IMG_5563.HEIC | center | colour_jitter | true | |
1 | water | place_water_002__horizontal_flip_00 | place_water_002 | IMG_0003.HEIC | center | horizontal_flip | true | |
1 | water | place_water_002__small_rotation_01 | place_water_002 | IMG_0003.HEIC | center | small_rotation | true | |
1 | water | place_water_002__brightness_contrast_02 | place_water_002 | IMG_0003.HEIC | center | brightness_contrast | true | |
1 | water | place_water_002__colour_jitter_03 | place_water_002 | IMG_0003.HEIC | center | colour_jitter | true | |
1 | water | place_water_002__horizontal_flip_04 | place_water_002 | IMG_0003.HEIC | center | horizontal_flip | true | |
1 | water | place_water_002__small_rotation_05 | place_water_002 | IMG_0003.HEIC | center | small_rotation | true | |
1 | water | place_water_002__brightness_contrast_06 | place_water_002 | IMG_0003.HEIC | center | brightness_contrast | true | |
1 | water | place_water_002__colour_jitter_07 | place_water_002 | IMG_0003.HEIC | center | colour_jitter | true | |
1 | water | place_water_002__horizontal_flip_08 | place_water_002 | IMG_0003.HEIC | center | horizontal_flip | true | |
1 | water | place_water_002__small_rotation_09 | place_water_002 | IMG_0003.HEIC | center | small_rotation | true | |
1 | water | place_water_002__brightness_contrast_10 | place_water_002 | IMG_0003.HEIC | center | brightness_contrast | true | |
1 | water | place_water_002__colour_jitter_11 | place_water_002 | IMG_0003.HEIC | center | colour_jitter | true | |
1 | water | place_water_002__horizontal_flip_12 | place_water_002 | IMG_0003.HEIC | center | horizontal_flip | true | |
1 | water | place_water_002__small_rotation_13 | place_water_002 | IMG_0003.HEIC | center | small_rotation | true | |
1 | water | place_water_002__brightness_contrast_14 | place_water_002 | IMG_0003.HEIC | center | brightness_contrast | true | |
1 | water | place_water_002__colour_jitter_15 | place_water_002 | IMG_0003.HEIC | center | colour_jitter | true | |
1 | water | place_water_016__horizontal_flip_00 | place_water_016 | IMG_9188.HEIC | center | horizontal_flip | true | |
1 | water | place_water_016__small_rotation_01 | place_water_016 | IMG_9188.HEIC | center | small_rotation | true | |
1 | water | place_water_016__brightness_contrast_02 | place_water_016 | IMG_9188.HEIC | center | brightness_contrast | true | |
1 | water | place_water_016__colour_jitter_03 | place_water_016 | IMG_9188.HEIC | center | colour_jitter | true | |
1 | water | place_water_016__horizontal_flip_04 | place_water_016 | IMG_9188.HEIC | center | horizontal_flip | true | |
1 | water | place_water_016__small_rotation_05 | place_water_016 | IMG_9188.HEIC | center | small_rotation | true | |
1 | water | place_water_016__brightness_contrast_06 | place_water_016 | IMG_9188.HEIC | center | brightness_contrast | true | |
1 | water | place_water_016__colour_jitter_07 | place_water_016 | IMG_9188.HEIC | center | colour_jitter | true | |
1 | water | place_water_016__horizontal_flip_08 | place_water_016 | IMG_9188.HEIC | center | horizontal_flip | true | |
1 | water | place_water_016__small_rotation_09 | place_water_016 | IMG_9188.HEIC | center | small_rotation | true | |
1 | water | place_water_016__brightness_contrast_10 | place_water_016 | IMG_9188.HEIC | center | brightness_contrast | true | |
1 | water | place_water_016__colour_jitter_11 | place_water_016 | IMG_9188.HEIC | center | colour_jitter | true | |
1 | water | place_water_016__horizontal_flip_12 | place_water_016 | IMG_9188.HEIC | center | horizontal_flip | true | |
1 | water | place_water_016__small_rotation_13 | place_water_016 | IMG_9188.HEIC | center | small_rotation | true | |
1 | water | place_water_016__brightness_contrast_14 | place_water_016 | IMG_9188.HEIC | center | brightness_contrast | true | |
1 | water | place_water_016__colour_jitter_15 | place_water_016 | IMG_9188.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_003__horizontal_flip_00 | place_no_water_003 | IMG_3072.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_003__small_rotation_01 | place_no_water_003 | IMG_3072.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_003__brightness_contrast_02 | place_no_water_003 | IMG_3072.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_003__colour_jitter_03 | place_no_water_003 | IMG_3072.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_003__horizontal_flip_04 | place_no_water_003 | IMG_3072.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_003__small_rotation_05 | place_no_water_003 | IMG_3072.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_003__brightness_contrast_06 | place_no_water_003 | IMG_3072.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_003__colour_jitter_07 | place_no_water_003 | IMG_3072.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_003__horizontal_flip_08 | place_no_water_003 | IMG_3072.HEIC | center | horizontal_flip | true | |
0 | no_water | place_no_water_003__small_rotation_09 | place_no_water_003 | IMG_3072.HEIC | center | small_rotation | true | |
0 | no_water | place_no_water_003__brightness_contrast_10 | place_no_water_003 | IMG_3072.HEIC | center | brightness_contrast | true | |
0 | no_water | place_no_water_003__colour_jitter_11 | place_no_water_003 | IMG_3072.HEIC | center | colour_jitter | true | |
0 | no_water | place_no_water_003__horizontal_flip_12 | place_no_water_003 | IMG_3072.HEIC | center | horizontal_flip | true |
Places — Water or No Water
34 original photographs labelled by whether a body of water is visible, resized to 224x224. Homework 1.
| Property | Value |
|---|---|
| Splits | train (391), validation (5), test (6) |
| Resolution | 224x224 RGB |
| Target | label — 1 water, 0 no_water |
| Balance (all originals) | 17 water / 17 no_water |
Purpose
Binary image classification: is there a body of water in this scene?
Composition
| Column | Type | Description |
|---|---|---|
image |
image | 224x224 RGB |
label |
int | target — 1 water, 0 no_water |
label_name |
string | water or no_water |
source_id |
string | stable key |
parent_id |
string | source image; equals source_id for an unaugmented row |
original_filename |
string | filename of the source photograph |
crop_mode |
string | center or bottom |
augmentation |
string | none or the transform that produced the row |
is_augmented |
bool | whether the row is derived |
Collection
All photographs are my own, taken on an iPhone and selected from my camera roll. Nothing was downloaded or generated.
A photograph is water when a body of water is visibly identifiable: river, lake, ocean,
waterfall, pond, canal, or fountain. Labels were assigned by hand by filing each photograph
into a water/ or no_water/ folder.
Selection kept water independent of setting. Both classes contain built-up scenes and open landscape — skylines over water and a night fountain on the water side, a mountain valley and tree-lined paths on the other. Otherwise a model could score well by classifying "nature vs. city" without ever looking for water.
Preprocessing
Largest square crop, then LANCZOS resize to 224x224 RGB. Cropping rather than squashing keeps the scene undistorted. Padding was considered but rejected: the discarded margin is sky or foreground in every photograph, so no evidence behind a label is lost, and letterbox bars would only shrink the subject.
One exception: IMG_0498 frames a skyline high with the water along the bottom edge, so a
centre crop would remove the water that defines its label. It uses a bottom-anchored crop,
discarding only empty sky. crop_mode records which rule each row used
(33 centre, 1 bottom).
Augmentation
16 variants per training image (368 total), cycling through four transforms with seed 24679. Validation and test photographs are never used as parents:
| Transform | Parameters |
|---|---|
horizontal_flip |
mirror |
small_rotation |
±8°, edge-filled |
brightness_contrast |
brightness ×0.65–1.35, contrast ×0.75–1.30 |
colour_jitter |
saturation ×0.55–1.45 |
Each transform changes how a scene was captured, not what is in it, so labels are inherited from the parent and never recomputed. Random crops, heavy blur and full desaturation were rejected — each can remove or obscure the water that defines the label.
Splits and intended use
| Split | Images | Contents |
|---|---|---|
train |
391 | 23 training photographs + 368 variants |
validation |
5 | Held-out photographs, unaugmented |
test |
6 | Held-out photographs, unaugmented |
Photographs were split about 70/15/15, stratified on the label, before augmentation, so no
validation or test image has a descendant in train. Use the splits as given.
from datasets import load_dataset
ds = load_dataset("ssg1/places-water-binary")
train, validation, test = ds["train"], ds["validation"], ds["test"]
Images are already 224x224, so they feed pretrained backbones without further resizing. Normalisation is left to the user.
Limitations
- 34 original images is very small, so
validationholds 5 images andtestholds 6. A single misclassification moves test accuracy by roughly 17 points — treat any single score as a rough indication rather than a reliable estimate. - Augmentation adds variation, not new scenes, so training-set performance is optimistic.
- Photographer bias — one person, one phone, mostly daylight. Night scenes and bad weather are thinly covered.
- Water scale varies widely — an ocean filling half the frame versus a small fountain. Small-water cases are underrepresented.
- Water type is not labelled. Ocean, river, pond and fountain all collapse to
1. - Built for coursework, not for safety or monitoring use.
Ethical notes
No photograph is a portrait and none has a face as its subject. Some street and park scenes contain distant pedestrians in public places, incidental to the scene and not identifiable at 224x224. No readable licence plates, house numbers or screens appear.
All images are my own work, so there are no third-party copyright questions.
License
MIT.
AI usage disclosure
- Photographs — taken and selected by the author. No images were generated or edited by an AI model.
- Preprocessing and augmentation — deterministic Pillow and NumPy operations, reproducible from seed 24679. No generative model was used.
- Notebook and card — Claude helped structure the notebook and draft documentation. Subject, selection, labelling, the crop exception, and the choice of transforms were decided and verified by the author.
- Downloads last month
- 59