Skip to main content
Version: 0.10.0

Type Alias: StyleTransferOptions

StyleTransferOptions = Omit<ImagePreprocessorOptions, "resizeMode"> & object

Defined in: extensions/cv/tasks/styleTransfer.ts:29

Options for configuring the style transfer preprocessor and postprocessor.

Type Declaration

outInterpolation

readonly outInterpolation: InterpolationMethod

Interpolation method used when resizing output styled images to input dimensions.

outNormalizeOpts

readonly outNormalizeOpts: NormalizeOptions

Normalization options for postprocessing output tensors back to uint8 pixel values.

resizeMode

readonly resizeMode: "stretch"

Resize mode for input images. Must be 'stretch'.