ImageOptions class

Size, sampling, and progress controls for images.

Constructors

ImageOptions({String? negativePrompt, int? width, int? height, int? steps, double? guidanceScale, int? seed, ImageMode mode = ImageMode.generate, bool reportPartials = false})
Override any subset of the image-generation defaults.

Properties

guidanceScale double
Classifier-free guidance strength.
no setter
hashCode int
The hash code for this object.
no setterinherited
height int?
Output height in pixels. Null uses the model's native size.
final
mode ImageMode
Generate-from-scratch or inpaint.
final
negativePrompt String?
Concepts to steer away from.
final
reportPartials bool
True emits intermediate images through images.generateStream.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
Deterministic sampling seed.
final
steps int
Denoising steps.
no setter
width int?
Output width in pixels. Null uses the model's native size.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toProto(String prompt) DiffusionGenerationOptions
Build the generated diffusion options for prompt.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited