ImageToImageRequestParams.imageStrength constructor
ImageToImageRequestParams.imageStrength({
- required List<
TextPrompt> textPrompts, - double imageStrength = 0.35,
- int cfgScale = 7,
- ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none,
- Sampler? sampler,
- int samples = 1,
- int seed = 0,
- int steps = 50,
- required StylePreset stylePreset,
Implementation
factory ImageToImageRequestParams.imageStrength(
{required List<TextPrompt> textPrompts,
double imageStrength = 0.35,
int cfgScale = 7,
ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none,
Sampler? sampler,
int samples = 1,
int seed = 0,
int steps = 50,
required StylePreset stylePreset}) {
return ImageToImageRequestParams(
initImageMode: InitImageMode.imageStrength,
imageStrength: imageStrength,
textPrompts: textPrompts,
cfgScale: cfgScale,
clipGuidancePreset: clipGuidancePreset,
sampler: sampler,
samples: samples,
seed: seed,
steps: steps,
stylePreset: stylePreset);
}