|
|
@@ -69,7 +69,7 @@ |
|
|
|
<!-- <a href="javascript:window.history.back();"><i class="arrow left icon"></i>返回</a> --> |
|
|
|
<div class="ui breadcrumb"> |
|
|
|
<a class="section" href="{{$.RepoLink}}/modelmanage/show_model"> |
|
|
|
模型管理 |
|
|
|
{{$.i18n.Tr "repo.model.manage.model_manage"}} |
|
|
|
</a> |
|
|
|
<div class="divider"> / </div> |
|
|
|
<div class="active section">{{.name}}</div> |
|
|
@@ -83,15 +83,15 @@ |
|
|
|
<table class="tableStyle" style="margin-top:20px;"> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">模型名称</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.model_name"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="ModelName" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">版本</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.version"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Version" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">标签</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.migrate_items_labels"}}</td> |
|
|
|
<td class="ti-text-form-content"> |
|
|
|
<div id="Label" style="overflow: hidden;width: 95%;"> |
|
|
|
|
|
|
@@ -101,15 +101,15 @@ |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">大小</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.model_size"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Size" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">创建时间</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.createtime"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="CreateTime" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">模型描述</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.description"}}</td> |
|
|
|
<td class="ti-text-form-content" > |
|
|
|
<div id="edit-td" style="display:flex"> |
|
|
|
<span id="Description" title="" class="iword-elipsis"></span> |
|
|
@@ -118,38 +118,42 @@ |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">代码版本</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.code_version"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="CodeBranch" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">启动文件</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.start_file"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="BootFile" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">训练数据集</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.train_dataset"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="DatasetName" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">运行参数</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Parameters" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">规格</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.AI_driver"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="EngineName" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.standard"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="FlavorName" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">计算节点</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job.compute_node"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="WorkServerNumber" title=""></span></td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<div class="half-table"> |
|
|
|
<span class="model_header_text">模型精度</span> |
|
|
|
<span class="model_header_text">{{$.i18n.Tr "repo.model.manage.model_accuracy"}}</span> |
|
|
|
<table class="tableStyle" style="margin-top:20px;"> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">准确率</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.Accuracy"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Accuracy" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
@@ -157,11 +161,11 @@ |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="F1" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">精确率</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.Precision"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Precision" title=""></span></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">召回率</td> |
|
|
|
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.Recall"}}</td> |
|
|
|
<td class="ti-text-form-content word-elipsis"><span id="Recall" title=""></span></td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
@@ -209,11 +213,9 @@ function transObj(data){ |
|
|
|
let modelAcc = JSON.parse(Accuracy) |
|
|
|
TrainTaskInfo = JSON.parse(TrainTaskInfo) |
|
|
|
// Parameters = JSON.parse(Parameters) |
|
|
|
console.log("TrainTaskInfo",TrainTaskInfo) |
|
|
|
let {Parameters} = TrainTaskInfo |
|
|
|
let {Parameters,EngineName} = TrainTaskInfo |
|
|
|
Parameters = JSON.parse(Parameters) |
|
|
|
Parameters = Parameters.parameter.length === 0 ? '--':Parameters.parameter |
|
|
|
console.log(Parameters) |
|
|
|
let size = tranSize(Size) |
|
|
|
let time = transTime(CreatedUnix) |
|
|
|
let initObj = { |
|
|
@@ -230,7 +232,8 @@ function transObj(data){ |
|
|
|
Parameters:TrainTaskInfo.Parameters || '--', |
|
|
|
FlavorName:TrainTaskInfo.FlavorName || '--', |
|
|
|
WorkServerNumber:TrainTaskInfo.WorkServerNumber || '--', |
|
|
|
Parameters:Parameters |
|
|
|
Parameters:Parameters, |
|
|
|
EngineName:EngineName, |
|
|
|
} |
|
|
|
let initModelAcc = { |
|
|
|
Accuracy: modelAcc.Accuracy || '--', |
|
|
@@ -319,7 +322,6 @@ function renderInfo(obj,accObj,id){ |
|
|
|
|
|
|
|
} |
|
|
|
else if(key==="Parameters"){ |
|
|
|
console.log("obj[key",obj[key]) |
|
|
|
if(obj[key]==='--'){ |
|
|
|
$(`#${key}`).text(obj[key]) |
|
|
|
}else{ |
|
|
@@ -328,7 +330,6 @@ function renderInfo(obj,accObj,id){ |
|
|
|
return labelValue |
|
|
|
}); |
|
|
|
const parameter = parameterArray.join('; ') |
|
|
|
console.log(parameter) |
|
|
|
$(`#${key}`).text(parameter) |
|
|
|
$(`#${key}`).attr("title",parameter) |
|
|
|
} |
|
|
|