Model class

Constructors

Model(int _index)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getImagePrediction(File image, int width, int height, String labelPath, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<String>
predicts image and returns the supposed label belonging to it
getImagePredictionList(File image, int width, int height, {List<double> mean = TORCHVISION_NORM_MEAN_RGB, List<double> std = TORCHVISION_NORM_STD_RGB}) Future<List?>
predicts image but returns the raw net output
getPrediction(List<double> input, List<int> shape, DType dtype) Future<List?>
predicts abstract number input
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