版本260406

This commit is contained in:
2026-04-06 22:04:05 +08:00
parent 7dc5e73af7
commit 0b150470be
216 changed files with 98993 additions and 33 deletions

View File

@@ -0,0 +1,67 @@
namespace OrpaonVision.Core.Training.Contracts.Commands;
/// <summary>
/// 构建数据集命令。
/// </summary>
public sealed class BuildDatasetCommand
{
/// <summary>
/// 数据集名称。
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// 数据集描述。
/// </summary>
public string Description { get; init; } = string.Empty;
/// <summary>
/// 机种ID。
/// </summary>
public Guid ProductTypeId { get; init; }
/// <summary>
/// 标注任务ID列表。
/// </summary>
public IReadOnlyList<Guid> AnnotationTaskIds { get; init; } = [];
/// <summary>
/// 训练集比例0-1
/// </summary>
public decimal TrainingRatio { get; init; } = 0.7m;
/// <summary>
/// 验证集比例0-1
/// </summary>
public decimal ValidationRatio { get; init; } = 0.2m;
/// <summary>
/// 测试集比例0-1
/// </summary>
public decimal TestRatio { get; init; } = 0.1m;
/// <summary>
/// 是否启用数据增强。
/// </summary>
public bool EnableDataAugmentation { get; init; } = true;
/// <summary>
/// 数据增强参数JSON
/// </summary>
public string DataAugmentationJson { get; init; } = string.Empty;
/// <summary>
/// 最小图像尺寸。
/// </summary>
public int MinImageSize { get; init; } = 640;
/// <summary>
/// 最大图像尺寸。
/// </summary>
public int MaxImageSize { get; init; } = 640;
/// <summary>
/// 创建者。
/// </summary>
public string CreatedBy { get; init; } = string.Empty;
}