Table of Contents

Class InpaintPrompt

Namespace
Glitch9.AIDevKit

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

public class InpaintPrompt : PromptBase, IPrompt
Inheritance
object
InpaintPrompt
Implements
Inherited Members
Extension Methods

Constructors

InpaintPrompt(string, Texture2D, Texture2D)

public InpaintPrompt(string instruction, Texture2D image, Texture2D mask = null)

Parameters

instruction string
image Texture2D
mask Texture2D

Fields

image

The image to be edited.

public Texture2D image

Field Value

Texture2D

instruction

The instruction for the inpainting task.
This should be a clear and concise instruction on what to edit in the image.

public string instruction

Field Value

string

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.

public Texture2D mask

Field Value

Texture2D

Properties

IsValid

public bool IsValid { get; }

Property Value

bool

Methods

GetText()

public override string GetText()

Returns

string