ImageGenerationCapabilities class

Image-generation support of the runtime, from ImageGenerationEngine.checkRuntime, and of a loaded engine, from ImageGenerationEngine.capabilities.

Implemented types

Constructors

ImageGenerationCapabilities({required bool isSupported, String? unsupportedReason, String? backendName, List<String> deviceNames = const <String>[], String? runtimeVersion, String? modelVersion, bool supportsCancellation = false, int maxConcurrentTasks = 0})
Creates a capability snapshot.
const

Properties

backendName → String?
Device the engine runs on, such as MTL0, Vulkan0 or CPU. For ImageGenerationEngine.checkRuntime, the device ComputeDevice.auto would pick.
final
deviceNames → List<String>
Every device the runtime reports, such as MTL0, BLAS and CPU.
final
hashCode → int
The hash code for this object.
no setterinherited
isSupported → bool
Whether images can be generated.
final
maxConcurrentTasks → int
Maximum concurrent generations: one per process.
final
modelVersion → String?
Model family the runtime detected, such as SD 2.x; null before a model is loaded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runtimeVersion → String?
stable-diffusion.cpp version of the bundled runtime.
final
supportsCancellation → bool
Whether a running generation can be cancelled.
final
unsupportedReason → String?
Actionable reason when isSupported is false.
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