AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class InpaintPrompt

    A specialized prompt for inpainting tasks.
    This class is used to pass the instruction and the image to the inpainting model for GENInpaintTask.

    Inheritance
    object
    InpaintPrompt
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class InpaintPrompt

    Constructors

    InpaintPrompt(string, Texture2D, Texture2D)

    Declaration
    public InpaintPrompt(string instruction, Texture2D image, Texture2D mask = null)
    Parameters
    Type Name Description
    string instruction
    Texture2D image
    Texture2D mask

    Fields

    image

    The image to be edited.

    Declaration
    public Texture2D image
    Field Value
    Type Description
    Texture2D

    mask

    Optional. The mask to be used for inpainting.
    The mask should be a black and white image where the white area is the area to be edited.

    Declaration
    public Texture2D mask
    Field Value
    Type Description
    Texture2D

    text

    The instruction how you want to edit the image.
    For example: "Add a cat to the image" or "Remove the person from the image".

    Declaration
    public string text
    Field Value
    Type Description
    string

    Properties

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Extension Methods

    GENTaskExtensions.GENInpaint(InpaintPrompt)
    In this article
    Back to top Generated by DocFX