PytorchLite class
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
loadClassificationModel(String path, int imageWidth, int imageHeight, int numberOfClasses, {String? labelPath, bool ensureMatchingNumberOfClasses = true, ModelLocation modelLocation = ModelLocation.asset})
→ Future<ClassificationModel>
-
Sets pytorch model path and returns Model
-
loadObjectDetectionModel(String path, int numberOfClasses, int imageWidth, int imageHeight, {String? labelPath, ObjectDetectionModelType objectDetectionModelType = ObjectDetectionModelType.yolov5, ModelLocation modelLocation = ModelLocation.asset})
→ Future<ModelObjectDetection>
-
Sets pytorch object detection model (path and lables) and returns Model