Class ArbitraryStyleTransferNetwork
Hierarchy
-
ArbitraryStyleTransferNetwork
Constructors
constructor
-
Parameters
-
Default value styleCheckpointURL: string = DEFAULT_STYLE_CHECKPOINT
-
Default value transformCheckpointURL: string = DEFAULT_TRANSFORM_CHECKPOINT
Methods
initialize
- initialize(): Promise<void>
stylize
- stylize(content: ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, style: ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, strength?: number): Promise<ImageData>
-
Parameters
-
content: ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement
-
style: ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement
-
Optional strength: number
Returns Promise<ImageData>
Main ArbitraryStyleTransferNetwork class