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
Assembly: .dll
Syntax
public class InpaintPrompt : PromptBase, IPrompt
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
Declaration
Field Value
Type |
Description |
Texture2D |
|
instruction
The instruction for the inpainting task.
This should be a clear and concise instruction on what to edit in the image.
Declaration
public string instruction
Field Value
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
Field Value
Type |
Description |
Texture2D |
|
Properties
IsValid
Declaration
public bool IsValid { get; }
Property Value
Methods
GetText()
Declaration
public override string GetText()
Returns
Overrides
Implements
Extension Methods