mnistPreprocessing
fun mnistPreprocessing(ctx: ExecutionContext): Transform<PlatformBitmapImage, Tensor<FP16, Float>>(source)
Creates a standard MNIST preprocessing pipeline.
This pipeline:
Resizes to 28x28
Converts to tensor
Rescales to 0, 1
Normalizes with MNIST statistics
Return
A transform that preprocesses images for MNIST models
Parameters
ctx
The execution context