Interface OptionsNormalizationParameters

interface OptionsNormalizationParameters {
    norm?: {
        bias?: number | [number, number, number] | [number, number, number, number];
        mean?: number | [number, number, number] | [number, number, number, number];
    };
}

Hierarchy (view full)

Properties

Properties

norm?: {
    bias?: number | [number, number, number] | [number, number, number, number];
    mean?: number | [number, number, number] | [number, number, number, number];
}

Describes normalization parameters when preprocessing the image as model input.

Data element are ranged from 0 to 255.

Type declaration

  • Optional bias?: number | [number, number, number] | [number, number, number, number]

    The 'bias' value for image normalization.

    • If omitted, use default value 0.
    • If it's a single number, apply to each channel
    • If it's an array of 3 or 4 numbers, apply element-wise. Number of elements need to match the number of channels for the corresponding image format
  • Optional mean?: number | [number, number, number] | [number, number, number, number]

    The 'mean' value for image normalization.

    • If omitted, use default value 255.
    • If it's a single number, apply to each channel
    • If it's an array of 3 or 4 numbers, apply element-wise. Number of elements need to match the number of channels for the corresponding image format

Generated using TypeDoc