Computer Vision with Neural Networks
Reflect a labelled seed image
A one-column photograph
Botie is reflecting a labelled seed photograph. If its mask stays still, the training pair will teach the model that different pixels contain the seed.
BOTIE
The inputs we are comparing
Seed photograph
Seed on the left
| 200 | 20 | 10 |
| 180 | 50 | 20 |
One column
| 200 |
| 10 |
Aligned seed mask
Seed on the left
| 1 | 0 | 0 |
| 1 | 1 | 0 |
One column
| 1 |
| 0 |
Result for seed on the left
[
[
[
10,
20,
200
],
[
20,
50,
180
]
],
[
[
0,
0,
1
],
[
0,
1,
1
]
]
]A diagonal seed arrangement must keep its labels
This check uses the pieces from “Reflect the image and its labels together”.
BOTIE
- Seed photograph
10 10 200 10 150 20 90 10 10 - Aligned seed mask
0 0 1 0 1 0 1 0 0
Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
Why should reflected versions of one original photograph stay on the same side of a training-validation split?
Augment after splitting original observations, and transform spatial labels with their images.
This exercise illustrates one deterministic transformation. Real augmentation choices must respect the task and happen after splitting original observations.
Work through the Python challenges →