SegmentModel class

////////// SEG

Constructors

SegmentModel({required ExecuTorchModel model, required String modelPath, required int inputWidth, required int inputHeight, required List<String> labels})

Properties

hashCode → int
The hash code for this object.
no setterinherited
inputHeight → int
final
inputWidth → int
final
labels → List<String>
final
model → ExecuTorchModel
final
modelPath → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

forward(TensorData inputTensor, Uint8List originalImageBytes) → Future<List<TensorData>>
getResult(List<TensorData> outputs, Uint8List originalImageBytes) → SegmentationResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predict(Uint8List originalImageBytes) → Future<SegmentationResult>
toString() → String
A string representation of this object.
inherited

Operators

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