diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index 9210803c7..bf08e675e 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -184,10 +184,13 @@ func StopModelConvert(ctx *context.Context) { func ShowModelConvertInfo(ctx *context.Context) { ctx.Data["ID"] = ctx.Query("ID") - ctx.Data["name"] = ctx.Query("name") ctx.Data["isModelManage"] = true ctx.Data["ModelManageAccess"] = ctx.Repo.CanWrite(models.UnitTypeModelManage) + task, err := models.QueryModelConvertById(ctx.Query("ID")) + if err == nil { + ctx.Data["task"] = task + } ctx.HTML(200, tplModelConvertInfo) } diff --git a/templates/repo/modelmanage/convertshowinfo.tmpl b/templates/repo/modelmanage/convertshowinfo.tmpl index 24f6ce9da..c0409f944 100644 --- a/templates/repo/modelmanage/convertshowinfo.tmpl +++ b/templates/repo/modelmanage/convertshowinfo.tmpl @@ -187,6 +187,7 @@ td, th {
{{.Name}}
+ {{with .task}}
@@ -202,7 +203,7 @@ td, th { {{.Status}} {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}: - {{$.TrainJobDuration}} + {{.TrainJobDuration}}
@@ -246,7 +247,32 @@ td, th {
+ + + + 输入张量形状 + + + +
+ {{.InputShape}} +
+ + + + + 输入数据格式 + + + +
+ {{.InputDataFormat}} +
+ + + + {{$.i18n.Tr "repo.modelarts.train_job.start_time"}} @@ -265,11 +291,22 @@ td, th {
- {{$.TrainJobDuration}} + {{.TrainJobDuration}} +
+ + + + + + 网络输出数据类型 + + + +
+ {{.NetOutputFormat}}
- @@ -279,21 +316,68 @@ td, th { - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 模型名称 + +
+ {{.ModelName}} +
+
+ 模型版本 + +
+ {{.ModelVersion}} +
+
+ 模型文件 + +
+ {{.ModelPath}} +
+
- {{$.i18n.Tr "repo.modelarts.train_job.start_file"}} + 原模型框架
- {{.BootFile}} + {{.SrcEngine}}
+ 转换后格式 + +
+ {{.DestFormat}} +
+
@@ -306,6 +390,18 @@ td, th {
+ {{$.i18n.Tr "repo.cloudbrain_creator"}} + +
+ {{.UserName}} +
+
@@ -314,7 +410,7 @@ td, th { - + {{end}}
-
- -
+