ImageToImageRequestParams class
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
ImageToImageRequestParams({InitImageMode initImageMode = InitImageMode.imageStrength, double? imageStrength, double? stepScheduleStart, double? stepScheduleEnd, required List<TextPrompt> textPrompts, int cfgScale = 7, ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none, Sampler? sampler, int samples = 1, int seed = 0, int steps = 50, required StylePreset stylePreset})
-
-
ImageToImageRequestParams.fromJson(Map<String, dynamic> json)
-
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})
-
factory
-
ImageToImageRequestParams.stepSchedule({required List<TextPrompt> textPrompts, double stepScheduleStart = 0.65, double stepScheduleEnd = 0, int cfgScale = 7, ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none, Sampler? sampler, int samples = 1, int seed = 0, int steps = 50, required StylePreset stylePreset})
-
factory
Properties
-
cfgScale
↔ int
-
How strictly the diffusion process adheres to
the prompt text (higher values keep your image closer to your prompt)
getter/setter pair
-
clipGuidancePreset
↔ ClipGuidancePreset
-
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
imageStrength
↔ double?
-
getter/setter pair
-
initImageMode
↔ InitImageMode
-
Image used to initialize the diffusion process, in lieu of random noise.
Whether to use image_strength or step_schedule_* to
control how much influence the init_image has on the result.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sampler
↔ Sampler?
-
Which sampler to use for the diffusion process.
If this value is omitted we'll automatically select an
appropriate sampler for you.
getter/setter pair
-
samples
↔ int
-
Number of images to generate
getter/setter pair
-
seed
↔ int
-
Random noise seed (omit this option or use 0 for a random seed)
getter/setter pair
-
steps
↔ int
-
Number of diffusion steps to run
getter/setter pair
-
stepScheduleEnd
↔ double?
-
Skips a proportion of the end of the diffusion steps, allowing
the init_image to influence the final generated image. Lower
values will result in more influence from the init_image,
while higher values will result in more influence from the
diffusion steps.
getter/setter pair
-
stepScheduleStart
↔ double?
-
number (StepScheduleStart)
0 .. 1
Skips a proportion of the start of the diffusion steps,
allowing the init_image to influence the final generated
image. Lower values will result in more influence from the
init_image, while higher values will result in more influence
from the diffusion steps. (e.g. a value of 0 would simply return
you the init_image, where a value of 1 would return you a completely
different image.)
getter/setter pair
-
stylePreset
↔ StylePreset
-
Pass in a style preset to guide the image model towards a particular
style. This list of style presets is subject to change.
getter/setter pair
-
textPrompts
↔ List<TextPrompt>
-
getter/setter pair