imageNetPreprocessing

Creates a standard ImageNet preprocessing pipeline.

This pipeline:

  1. Resizes to 256x256

  2. Center crops to 224x224

  3. Converts to tensor

  4. Rescales to 0, 1

  5. Normalizes with ImageNet statistics

Return

A transform that preprocesses images for ImageNet-trained models

Parameters

ctx

The execution context