ImageMaskingRequestParam.maskImageWhite constructor
ImageMaskingRequestParam.maskImageWhite({
- required List<
TextPrompt> textPrompts, - required Uint8List maskImage,
- int cfgScale = 7,
- ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none,
- Sampler? sampler,
- int samples = 1,
- int seed = 0,
- int steps = 50,
- required StylePreset stylePreset,
will use the white pixels of the mask_image as the mask, where white pixels are completely replaced and black pixels are unchanged
Implementation
factory ImageMaskingRequestParam.maskImageWhite(
{required List<TextPrompt> textPrompts,
required Uint8List maskImage,
int cfgScale = 7,
ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none,
Sampler? sampler,
int samples = 1,
int seed = 0,
int steps = 50,
required StylePreset stylePreset}) {
return ImageMaskingRequestParam(
maskSource: MaskSource.maskImageWhite,
maskImage: maskImage,
textPrompts: textPrompts,
stylePreset: stylePreset,
cfgScale: cfgScale,
clipGuidancePreset: clipGuidancePreset,
sampler: sampler,
samples: samples,
seed: seed,
steps: steps,
);
}