ImageInitializers

class ImageInitializers<T : DType, V>(shapeBuilder: ShapeBuilder<T, V>)(source)

Common image processing initializations

Constructors

Link copied to clipboard
constructor(shapeBuilder: ShapeBuilder<T, V>)

Functions

Link copied to clipboard

Initialize as black image (all zeros)

Link copied to clipboard
fun imagenetNormalized(random: Random = Random.Default): TensorInitializer<T, V>

Initialize with ImageNet normalization values

Link copied to clipboard
fun normalizedPixels(random: Random = Random.Default): TensorInitializer<T, V>

Initialize with pixel values normalized to 0, 1 range

Link copied to clipboard
fun pixelRange(random: Random = Random.Default): TensorInitializer<T, V>

Initialize with pixel values in standard 0, 255 range

Link copied to clipboard

Initialize as white image (all ones for normalized, 255 for pixel range)