Browse Source

增加评测场景及分类。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
8a93e92caf
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      routers/repo/aisafety.go
  2. +4
    -0
      routers/repo/cloudbrain.go

+ 1
- 1
routers/repo/aisafety.go View File

@@ -93,7 +93,7 @@ func GetAiSafetyTask(ctx *context.Context) {
syncAiSafetyTaskStatus(job) syncAiSafetyTaskStatus(job)
job, err = models.GetCloudbrainByIDWithDeleted(ID) job, err = models.GetCloudbrainByIDWithDeleted(ID)
job.BenchmarkType = "CV" job.BenchmarkType = "CV"
job.BenchmarkTypeName = "Classification"
job.BenchmarkTypeName = "图像分类"
ctx.JSON(200, job) ctx.JSON(200, job)
} }




+ 4
- 0
routers/repo/cloudbrain.go View File

@@ -2175,6 +2175,10 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) {
} }
} }
} }
if task.JobType == string(models.JobTypeModelSafety) {
ciTasks[i].BenchmarkType = "CV"
ciTasks[i].BenchmarkTypeName = "图像分类"
}
} }


pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5) pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5)


Loading…
Cancel
Save