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

IYolov7DetModel 类

Abstract base implementation of YOLOv7 model for object detection YOLOv7目标检测模型的抽象基类实现

Definition

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

备注

Provides standard YOLOv7 detection pipeline including: 提供标准YOLOv7检测流程,包括: - Output decoding 输出解码 - Confidence filtering 置信度过滤 - Coordinate adjustment 坐标调整

Inherits from base IModel interface and implements YOLOv7-specific processing 继承自基础IModel接口并实现YOLOv7特定处理

Note: YOLOv7 uses different output format compared to YOLOv5: 注意:相比YOLOv5,YOLOv7使用不同的输出格式: Each detection result contains 7 values per row: 每个检测结果包含每行7个值: [batch_id, x1, y1, x2, y2, class_id, confidence]

构造函数

IYolov7DetModel Initializes a new instance of YOLOv7 detector 初始化YOLOv7检测器的新实例

属性

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 对原始模型输出进行后处理以提取检测结果
(重写 IModelPostprocess(DataTensor, ImageAdjustmentParam))
Predict(ListObject) Performs batch prediction on multiple inputs 对多个输入执行批量预测
(继承自 IModel。)
Predict(Object) Predicts objects in input image and returns detection results 预测输入图像中的目标并返回检测结果
PredictAsync Asynchronously performs prediction on single input 异步执行单个输入预测
(继承自 IModel。)
Preprocess Abstract method for input preprocessing 输入预处理的抽象方法
(继承自 IModel。)
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。)

参见