SegmentationError enum
Error codes for segmentation operations.
These codes help identify the specific cause of segmentation failures for debugging and error handling.
Values
- modelNotFound → const SegmentationError
-
Model file not found in assets.
- interpreterCreationFailed → const SegmentationError
-
Failed to create TFLite interpreter.
- delegateFallback → const SegmentationError
-
GPU delegate failed, fell back to CPU.
- imageDecodeFailed → const SegmentationError
-
Image decoding failed.
- imageTooSmall → const SegmentationError
-
Image too small (minimum 16x16).
- unexpectedTensorShape → const SegmentationError
-
Unexpected tensor shape from model.
- inferenceFailed → const SegmentationError
-
Inference failed.
- outOfMemory → const SegmentationError
-
Out of memory during upsampling.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
SegmentationError> - A constant List of the values in this enum, in order of their declaration.