ImageToImageRequestParams.stepSchedule constructor

ImageToImageRequestParams.stepSchedule({
  1. required List<TextPrompt> textPrompts,
  2. double stepScheduleStart = 0.65,
  3. double stepScheduleEnd = 0,
  4. int cfgScale = 7,
  5. ClipGuidancePreset clipGuidancePreset = ClipGuidancePreset.none,
  6. Sampler? sampler,
  7. int samples = 1,
  8. int seed = 0,
  9. int steps = 50,
  10. required StylePreset stylePreset,
})

Implementation

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}) {
  return ImageToImageRequestParams(
      initImageMode: InitImageMode.stepSchedule,
      stepScheduleStart: stepScheduleStart,
      stepScheduleEnd: stepScheduleEnd,
      textPrompts: textPrompts,
      cfgScale: cfgScale,
      clipGuidancePreset: clipGuidancePreset,
      sampler: sampler,
      samples: samples,
      seed: seed,
      steps: steps,
      stylePreset: stylePreset);
}