Files
observer/server/biz/model/entity/dataset.go
T
admin a0e75d5def chore(server): 训练/封面/数据集配置改动快照(含管理端构建产物与数据迁移)
- dataset 封面定位、训练产物命名(RNPHE/pigeon 前缀)、localai/config 训练机配置
- server_admin DatasetDetail/Datasets 调整 + admin_dist 重建产物
- observer.db 数据变更
2026-08-31 15:58:07 +08:00

32 lines
2.7 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)。
// 每数据集训练一个模型。
// 生成参数池(gen_*,创建数据集时 VLM 自动生成,界面不维护;config.yml 无兜底):
// gen_species 物种(单值)、gen_tone 轮廓色词(单值)、gen_heights 站高cm(数值)
// gen_scenes/gen_actions/gen_occlusions 场景/动作/遮挡池(JSON 数组);
// gen_classes 第二标注类别名(单值,"suspect",第一类别=gen_species)。
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)"`
SortOrder int64 `json:"sortOrder" orm:"sort_order" description:"序号(列表排序主键,升序;同号按创建时间倒序)"`
Description string `json:"description" orm:"description" description:"描述(卡片展示)"`
GenSpecies string `json:"genSpecies" orm:"gen_species" description:"物种(单值,同数据集名)"`
GenTone string `json:"genTone" orm:"gen_tone" description:"轮廓色词(单值,深色/浅色)"`
GenHeights float64 `json:"genHeights" orm:"gen_heights" description:"站高cm(数值,距离感公式用)"`
GenScenes string `json:"genScenes" orm:"gen_scenes" description:"场景池(JSON 数组)"`
GenActions string `json:"genActions" orm:"gen_actions" description:"动作池(JSON 数组)"`
GenOcclusions string `json:"genOcclusions" orm:"gen_occlusions" description:"遮挡池(JSON 数组)"`
GenClasses string `json:"genClasses" orm:"gen_classes" description:"第二标注类别名(单值,suspect;第一类别=gen_species)"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}