Mask Reference Image
A mask reference image.
This encapsulates either a mask image provided by the user and configs for the user provided mask, or only config parameters for the model to generate a mask.
A mask image is an image whose non-zero values indicate where to edit the base image. If the user provides a mask image, the mask must be in the same dimensions as the raw image.
Properties
Functions
Link copied to clipboard
Instantiates a builder for MaskReferenceImage.
Link copied to clipboard
Configuration for the mask reference image.
Link copied to clipboard
Deserializes a JSON string to a MaskReferenceImage object.
Link copied to clipboard
@InternalApi()
Deserializes a JsonNode to an object of the given type.
Link copied to clipboard
@InternalApi()
Deserializes a Json string to an object of the given type.
Link copied to clipboard
Link copied to clipboard
The id of the reference image.
Link copied to clipboard
The reference image for the editing operation.
Link copied to clipboard
The type of the reference image.
Link copied to clipboard
Overrides the default maximum JSON string length (20MB) for the JSON parser.
Link copied to clipboard
Converts a Json string to a JsonNode.
Link copied to clipboard
Creates a builder with the same values as this instance.
Link copied to clipboard
Serializes an object to a JsonNode.
Link copied to clipboard
Serializes an object to a Json string.
Link copied to clipboard