ImageGenerator.ImageGeneratorOptions.Builder

public static abstract class ImageGenerator.ImageGeneratorOptions.Builder

Public Constructors

Public Methods

final ImageGenerator.ImageGeneratorOptions
build()
Validates and builds the ImageGenerator.ImageGeneratorOptions instance.
abstract ImageGenerator.ImageGeneratorOptions.Builder
setErrorListener(ErrorListener value)
Sets an optional ErrorListener}.
abstract ImageGenerator.ImageGeneratorOptions.Builder
setImageGeneratorModelDirectory(String modelDirectory)
Sets the image generator model directory storing the model weights.
abstract ImageGenerator.ImageGeneratorOptions.Builder
setLoraWeightsFilePath(String loraWeightsFilePath)
Sets the path to LoRA weights file.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public final ImageGenerator.ImageGeneratorOptions build ()

Validates and builds the ImageGenerator.ImageGeneratorOptions instance.

public abstract ImageGenerator.ImageGeneratorOptions.Builder setErrorListener (ErrorListener value)

Sets an optional ErrorListener}.

Parameters
value

public abstract ImageGenerator.ImageGeneratorOptions.Builder setImageGeneratorModelDirectory (String modelDirectory)

Sets the image generator model directory storing the model weights.

Parameters
modelDirectory

public abstract ImageGenerator.ImageGeneratorOptions.Builder setLoraWeightsFilePath (String loraWeightsFilePath)

Sets the path to LoRA weights file.

Parameters
loraWeightsFilePath