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

IConfig 类

[缺少 "T:DeploySharp.Model.IConfig" 的 <summary> 文档]

Definition

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

构造函数

IConfig初始化 IConfig 类的一个新实例

属性

CategoryDict Dictionary mapping class IDs to human-readable names 将类别ID映射到可读名称的字典
DynamicInput Whether the model expects dynamic input shapes 模型是否接受动态输入形状
DynamicOutput Whether the model produces dynamic output shapes 模型是否产生动态输出形状
InferBatch Default inference batch size (for dynamic input models) 默认推理批量大小(用于动态输入模型)
InputNames 
InputSizes 
MaxBatchSize Maximum batch size capacity 最大批处理大小
ModelPath Model file path (supports ONNX/TensorFlow/etc formats) 模型文件路径(支持ONNX/TensorFlow等格式)
ModelType Type of the AI model (classification/detection/etc) AI模型类型(分类/检测等)
NumThreads Number of CPU threads for inference CPU推理线程数
OutputNames Output tensor names 输出张量名称
OutputSizes 
PrecisionMode Computation precision mode (FP32/FP16/INT8) 计算精度模式(FP32/FP16/INT8)
TargetDeviceType Target execution device (CPU/GPU/NPU) 目标执行设备(CPU/GPU/NPU)
TargetInferenceBackend Target inference backend (OpenVINO/TensorRT/ONNXRuntime/etc) 目标推理后端(OpenVINO/TensorRT/ONNXRuntime等)
TargetOnnxRuntimeDeviceType ONNXRuntime specific device type ONNXRuntime专用设备类型
UseGPU Whether GPU acceleration is enabled 是否启用GPU加速

方法

AppendIfSetT Helper method for conditional string building 用于条件字符串构建的辅助方法
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。)
SetModelPath Sets the model path using fluent interface pattern 使用流式接口模式设置模型路径
SetTargetDeviceType Sets the target device type using fluent interface 使用流式接口设置目标设备类型
SetTargetInferenceBackend Sets the inference backend using fluent interface 使用流式接口设置推理后端
SetTargetOnnxRuntimeDeviceType Sets ONNXRuntime-specific device type 设置ONNXRuntime专用设备类型
ToString Generates detailed configuration summary string 生成详细的配置摘要字符串
(重写 ObjectToString)

参见