Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

Yolov5SegModel 类

Implementation of YOLOv5 model for object detection Inherits from base IModel interface

Definition

命名空间: DeploySharp.Model
程序集:  DeploySharp.ImageSharp (在 DeploySharp.ImageSharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
  DeploySharp.OpenCvSharp (在 DeploySharp.OpenCvSharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class Yolov5SegModel : IYolov5SegModel
Inheritance
Object    IModel    IYolov5SegModel    Yolov5SegModel

构造函数

Yolov5SegModel Constructor initializes with model configuration

属性

ModelInferenceProfiler Performance profiler recording timing metrics 记录时间指标的性能分析器
(继承自 IModel。)

方法

Dispose Releases model resources 释放模型资源
(继承自 IModel。)
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
Postprocess Post-processes raw model output to extract detection results 对原始模型输出进行后处理以提取检测结果
(继承自 IYolov5SegModel。)
Predict(ListObject) Performs batch prediction on multiple inputs 对多个输入执行批量预测
(继承自 IModel。)
Predict(Object) Predicts objects in input image and returns detection results 预测输入图像中的目标并返回检测结果
(继承自 IYolov5SegModel。)
PredictAsync Asynchronously performs prediction on single input 异步执行单个输入预测
(继承自 IModel。)
Preprocess
(重写 IModelPreprocess(Object, ImageAdjustmentParam))
ToStringReturns a string that represents the current object.
(继承自 Object。)

字段

config Model configuration parameters 模型配置参数
(继承自 IModel。)
engine Inference engine instance 推理引擎实例
(继承自 IModel。)
predictorTimer Timer measuring different prediction phases 测量不同预测阶段的计时器
(继承自 IModel。)

参见