|
|
@@ -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> |
|
|
@@ -173,6 +177,7 @@ |
|
|
|
</div> |
|
|
|
{{template "base/footer" .}} |
|
|
|
<script> |
|
|
|
console.log({{.Tasks}}) |
|
|
|
let url = location.href.split('show_model')[0] |
|
|
|
let ID = location.search.split('?name=').pop() |
|
|
|
$(document).ready(loadInfo); |
|
|
@@ -210,7 +215,7 @@ function transObj(data){ |
|
|
|
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) |
|
|
@@ -230,7 +235,8 @@ function transObj(data){ |
|
|
|
Parameters:TrainTaskInfo.Parameters || '--', |
|
|
|
FlavorName:TrainTaskInfo.FlavorName || '--', |
|
|
|
WorkServerNumber:TrainTaskInfo.WorkServerNumber || '--', |
|
|
|
Parameters:Parameters |
|
|
|
Parameters:Parameters, |
|
|
|
EngineName:EngineName, |
|
|
|
} |
|
|
|
let initModelAcc = { |
|
|
|
Accuracy: modelAcc.Accuracy || '--', |
|
|
|