public static class

FritzVisionStylePredictorOptions.Builder

extends Object
java.lang.Object
   ↳ ai.fritz.fritzvisionstyle.FritzVisionStylePredictorOptions.Builder

Class Overview

Builder for FritzVisionStylePredictorOptions.

Summary

Public Constructors
Builder()
Public Methods
FritzVisionStylePredictorOptions build()
Build the options.
FritzVisionStylePredictorOptions.Builder imageResolution(int width, int height)
Specify the width and height of the style prediction result.
FritzVisionStylePredictorOptions.Builder imageResolution(FritzStyleResolution resolution)
Set the resolution of the style prediction result.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public FritzVisionStylePredictorOptions build ()

Build the options.

Returns
  • the options.

public FritzVisionStylePredictorOptions.Builder imageResolution (int width, int height)

Specify the width and height of the style prediction result.

IMPORTANT: the higher the resolution, the slower the model performs.

Parameters
width the width of the output image
height the height of the output image
Returns
  • the builder

public FritzVisionStylePredictorOptions.Builder imageResolution (FritzStyleResolution resolution)

Set the resolution of the style prediction result.

IMPORTANT: the higher the resolution, the slower the model performs. Please use normal or low settings for live video inference.

Parameters
resolution the resolution of the output image
Returns
  • the builder.