From 7d93a384c84c01f4ac372a88928acf89d7edd372 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 6 Jun 2022 09:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E6=A8=A1=E5=9E=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_convert.go | 5 +- .../repo/modelmanage/convertshowinfo.tmpl | 130 ++++++++++++++---- 2 files changed, 108 insertions(+), 27 deletions(-) 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}}
-
- -
+