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, bool supportsLocalSafetensorsSets = false, bool supportsImageEditing = false, int maxConcurrentTasks = 0}) -
Creates a capability snapshot.
const
Properties
- backendName → String?
-
Device the engine runs on, such as
MTL0,Vulkan0orCPU. ForImageGenerationEngine.checkRuntime, the deviceComputeDevice.autowould pick.final -
deviceNames
→ List<
String> -
Every device the runtime reports, such as
MTL0,BLASandCPU.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;nullbefore 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
- supportsImageEditing → bool
-
Whether the loaded model and runtime support ImageEditingRequest.
False before load and for unqualified model, decoder, host or device
recipes; ordinary text-to-image support is independent.
final
- supportsLocalSafetensorsSets → bool
-
Whether this engine was admitted using the bounded, verified local
complete-checkpoint set recipe. False before load and after disposal.
This does not imply Diffusers or image-editing support.
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