loadYoloModel abstract method
loadYoloModel: load YOLOv5 model from the assets folder
args: modelPath
- path to the model file
,labelsPath
- path to the labels file
,modelVersion
- yolov5, yolov8
,quantization
- When set to true, quantized models are used, which can result in faster execution, reduced memory usage, and slightly lower accuracy.
,numThreads
- number of threads to use for inference
,useGPU
- use GPU for inference
Implementation
Future<void> loadYoloModel(
{required String modelPath,
required String labels,
required String modelVersion,
bool? quantization,
int? numThreads,
bool? useGpu});