ImageGenerationProgressEvent class
Progress emitted before the final images are available.
- Inheritance
-
- Object
- ImageGenerationEvent
- ImageGenerationProgressEvent
Constructors
- ImageGenerationProgressEvent({required ImageGenerationPhase phase, required int step, required int steps, required int imageIndex, required int imageCount})
-
Creates a progress event.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageCount → int
-
Number of images requested.
final
- imageIndex → int
-
Zero-based index of the image being generated.
final
- phase → ImageGenerationPhase
-
Current phase.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → int
-
Completed units of the current phase. During
ImageGenerationPhase.sampling these are sampling steps, and
0means sampling of imageIndex has started. During ImageGenerationPhase.loading they are the tensors the runtime reports loading. ImageGenerationPhase.decoding starts at0of imageCount images and counts tiles if the runtime decodes in tiles.final - steps → int
-
Total units of the current phase.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited