- 标注:AI 预标注直写 labels_json(去候选确认两阶段);重叠去重(minIoU);全量标注按钮 - 训练:脚本迁移入 server/training/(Go 化 prepare_yolo/analyze_rfdetr,保留 train_server.py);tflite 产物自检并入训练流程(check_tflite) - 数据目录/权重不进 git;.gitignore 迁移至仓库根
20 lines
1.3 KiB
Go
20 lines
1.3 KiB
Go
package entity
|
||
|
||
import "github.com/gogf/gf/v2/os/gtime"
|
||
|
||
// LabelTask 标注任务:RF-DETR 预标注批量推理进度;候选框存
|
||
// datasets/<数据集名>/boxes.json(YOLO 归一化 xywh + 置信度 + 建议类别)。
|
||
// Filenames 为选中图片列表(JSON 数组串;空 = 全量扫描)。
|
||
type LabelTask struct {
|
||
Id int64 `json:"id" orm:"id" description:"自增主键"`
|
||
DatasetId int64 `json:"datasetId" orm:"dataset_id" description:"所属数据集"`
|
||
Status string `json:"status" orm:"status" description:"running|done"`
|
||
Total int `json:"total" orm:"total" description:"待标注图片数"`
|
||
Done int `json:"done" orm:"done" description:"已处理数"`
|
||
BoxesFile string `json:"boxesFile" orm:"boxes_file" description:"候选框 JSON 相对路径"`
|
||
Filenames string `json:"filenames" orm:"filenames" description:"选中图片JSON数组(空=全量)"`
|
||
Error string `json:"error" orm:"error" description:"失败原因(部分失败/全部失败)"`
|
||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||
FinishedAt *gtime.Time `json:"finishedAt" orm:"finished_at" description:"完成时间"`
|
||
}
|