Class Normalize

java.lang.Object
ai.djl.modality.cv.transform.Normalize
All Implemented Interfaces:
Transform

public class Normalize extends Object implements Transform
A Transform that normalizes an image NDArray of shape CHW or NCHW.
  • Constructor Details

    • Normalize

      public Normalize(float[] mean, float[] std)
      Creates a Normalize Transform that normalizes.
      Parameters:
      mean - the mean to normalize with for each channel
      std - the standard deviation to normalize with for each channel
      See Also:
  • Method Details