Files
observer/server/biz/model/entity/dataset.go
T
2026-08-28 14:31:13 +08:00

20 lines
1.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import "github.com/gogf/gf/v2/os/gtime"
// Dataset 训练数据集:图片文件在 app.datasetDir/datasets/<name>/DB 只存元数据 + 标注 labels_json)。
// 每数据集训练一个模型。
type Dataset struct {
Id int64 `json:"id" orm:"id" description:"自增主键"`
Name string `json:"name" orm:"name" description:"数据集名(≤50字,同是目录名,唯一)"`
Source string `json:"source" orm:"source" description:"manual|ai"`
ImageCount int64 `json:"imageCount" orm:"image_count" description:"图片数(冗余计数)"`
LabeledCount int64 `json:"labeledCount" orm:"labeled_count" description:"已标注数"`
Status string `json:"status" orm:"status" description:"building|labeled|synced"`
Cover string `json:"cover" orm:"cover" description:"封面文件名(卡片展示)"`
NamePrefix string `json:"namePrefix" orm:"name_prefix" description:"AI 生成图文件名前缀(如 pigeon,生成图命名 pigeon_01.jpg)"`
Description string `json:"description" orm:"description" description:"描述(卡片展示)"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}