Overlay mnist images over cifar10.
Adding noise to MNIST images tests or trains a classifier over data that is not part of the training distribution.
Extending the training data with these synthesised images can act as a form of regularisation to avoid overfitting while maintaining high accuracy on a corresponding testing dataset.
Extending the testing data with these synthesised images allows a better understanding of how a classifier will perform on data that is outside the training distribution, thus permitting better judgement on any future actions.
Let
Note that for our purposes, we resize torchvision.transforms.Resize
and the ToNumpyRGB
which repeats the grayscale channel 3 times to emulate an RGB image.
We let the transformed MNIST image be
Next, let
The resulting pixel
Here we are imagining
TODO
TODO