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