|
|
|
@@ -47,13 +47,12 @@ |
|
|
|
{{if eq .MODEL_CONVERT_COUNT 0}} |
|
|
|
<div class="ui placeholder segment bgtask-none"> |
|
|
|
<div class="ui icon header bgtask-header-pic"></div> |
|
|
|
<div class="bgtask-content-header">未创建过模型转换任务</div> |
|
|
|
<div class="bgtask-content-header">{{$.i18n.Tr "repo.modelconvert.notcreate"}}</div> |
|
|
|
<div class="bgtask-content"> |
|
|
|
{{if eq .MODEL_COUNT 0}} |
|
|
|
<div class="bgtask-content-txt">请您先导入<a href="{{.RepoLink}}/modelmanage/show_model">模型</a>,然后再对其进行转换。</div> |
|
|
|
<div class="bgtask-content-txt">{{$.i18n.Tr "repo.modelconvert.importfirst1"}}<a href="{{.RepoLink}}/modelmanage/show_model">{{$.i18n.Tr "repo.modelconvert.importfirst2"}}</a>{{$.i18n.Tr "repo.modelconvert.importfirst3"}}</div> |
|
|
|
{{end}} |
|
|
|
<div class="bgtask-content-txt">使用说明:可以参考启智AI协作平台<a |
|
|
|
href="https://git.openi.org.cn/zeizei/OpenI_Learning">小白训练营课程。</a></div> |
|
|
|
<div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions"}}</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -68,19 +67,19 @@ |
|
|
|
<div class="ui grid stackable" style="background: #f0f0f0;;"> |
|
|
|
<div class="row"> |
|
|
|
<div class="three wide column padding0"> |
|
|
|
<span style="margin:0 6px">任务名称</span> |
|
|
|
<span style="margin:0 6px">{{$.i18n.Tr "repo.modelconvert.taskname"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<span>状态</span> |
|
|
|
<span>{{$.i18n.Tr "repo.modelconvert.taskstatus"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<span>原模型框架</span> |
|
|
|
<span>{{$.i18n.Tr "repo.modelconvert.srcengine"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<span>转换后格式</span> |
|
|
|
<span>{{$.i18n.Tr "repo.modelconvert.outputformat"}}</span> |
|
|
|
</div> |
|
|
|
<div class="two wide column text center padding0"> |
|
|
|
<span>创建时间</span> |
|
|
|
<span>{{$.i18n.Tr "repo.modelconvert.createtime"}}</span> |
|
|
|
</div> |
|
|
|
<div class="one wide column text center padding0"> |
|
|
|
<span>{{$.i18n.Tr "repo.cloudbrain_creator"}}</span> |
|
|
|
@@ -143,10 +142,10 @@ |
|
|
|
|
|
|
|
{{if .IsCanOper}} |
|
|
|
<a id="ai-download-{{.ID}}" href="{{$.Repository.HTMLURL}}/modelmanage/download_model_convert/{{.ID}}?AllDownload=true&a=1" class='ui basic {{if eq .Status "SUCCEEDED" "COMPLETED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;"> |
|
|
|
下载 |
|
|
|
{{$.i18n.Tr "repo.modelconvert.download"}} |
|
|
|
</a> |
|
|
|
{{else}} |
|
|
|
<a class="ui basic disabled button">下载</a> |
|
|
|
<a class="ui basic disabled button">{{$.i18n.Tr "repo.modelconvert.download"}}</a> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -211,7 +210,7 @@ |
|
|
|
<input type="hidden" name="_csrf" value=""> |
|
|
|
<div class="unite min_title required inline fields" id="task_name"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="model_convert_name">任务名称</label> |
|
|
|
<label for="model_convert_name">{{$.i18n.Tr "repo.modelconvert.taskname"}}</label> |
|
|
|
</div> |
|
|
|
<div class="twelve wide field"> |
|
|
|
<input id="model_convert_name" name="model_convert_name" required maxlength="25" onkeyup="this.value=this.value.replace(/[, ]/g,'')"> |
|
|
|
@@ -219,10 +218,10 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields required"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="choice_model">模型名称</label> |
|
|
|
<label for="choice_model">{{$.i18n.Tr "repo.modelconvert.modelname"}}</label> |
|
|
|
</div> |
|
|
|
<div class="ui dropdown selection search eight wide field loading" id="choice_model" name="choice_model"> |
|
|
|
<div class="default text">选择模型</div> |
|
|
|
<div class="default text">{{$.i18n.Tr "repo.modelconvert.selectmodel"}}</div> |
|
|
|
<i class="dropdown icon"></i> |
|
|
|
<div class="menu" id="model-name"> |
|
|
|
</div> |
|
|
|
@@ -230,12 +229,12 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields required"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="choice_version">模型版本</label> |
|
|
|
<label for="choice_version">{{$.i18n.Tr "repo.modelconvert.modelversion"}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui dropdown selection search eight wide field" id="choice_version"> |
|
|
|
<input type="hidden" id="ModelVersion" name="ModelVersion" required> |
|
|
|
<div class="default text">选择版本</div> |
|
|
|
<div class="default text">{{$.i18n.Tr "repo.modelconvert.selectversion"}}</div> |
|
|
|
<i class="dropdown icon"></i> |
|
|
|
<div class="menu" id="model-version"> |
|
|
|
|
|
|
|
@@ -244,11 +243,11 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields required"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="choice_file">模型文件</label> |
|
|
|
<label for="choice_file">{{$.i18n.Tr "repo.model.manage.modelfile"}}</label> |
|
|
|
</div> |
|
|
|
<div class="ui dropdown selection search eight wide field" id="choice_file"> |
|
|
|
<input type="hidden" id="ModelFile" name="ModelFile" required> |
|
|
|
<div class="default text">选择模型文件</div> |
|
|
|
<div class="default text">{{$.i18n.Tr "repo.modelconvert.selectmodelfile"}}</div> |
|
|
|
<i class="dropdown icon"></i> |
|
|
|
<div class="menu" id="model-file"> |
|
|
|
|
|
|
|
@@ -261,7 +260,7 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields required"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="SrcEngine">原模型框架</label> |
|
|
|
<label for="SrcEngine">{{$.i18n.Tr "repo.modelconvert.srcengine"}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<select id="SrcEngine" class="ui search dropdown eight wide field" placeholder="" style='color:#000000;' name="SrcEngine" onchange="javascript:srcEngineChanged()"> |
|
|
|
@@ -270,7 +269,7 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title required inline fields" id="inputdataformat_div"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="inputdataformat">输入数据格式</label> |
|
|
|
<label for="inputdataformat">{{$.i18n.Tr "repo.modelconvert.inputdataformat"}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<select id="inputdataformat" class="ui search dropdown eight wide field" placeholder="" style='width:50%' name="inputdataformat"> |
|
|
|
@@ -281,16 +280,16 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title required inline fields" id="inputshape_div"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="inputshape">输入张量形状</label> |
|
|
|
<label for="inputshape">{{$.i18n.Tr "repo.modelconvert.inputshape"}}</label> |
|
|
|
</div> |
|
|
|
<div class="eight wide field"> |
|
|
|
<input id="inputshape" name="inputshape" placeholder="如:1,1,32,32,与输入数据格式对应。" required maxlength="25"> |
|
|
|
<input id="inputshape" name="inputshape" placeholder="{{$.i18n.Tr "repo.modelconvert.inputshapetip"}}" required maxlength="25"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="unite min_title inline fields required"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="DestFormat">转换后格式</label> |
|
|
|
<label for="DestFormat">{{$.i18n.Tr "repo.modelconvert.outputformat"}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<select id="DestFormat" class="ui search dropdown eight wide field" placeholder="" style='width:50%' name="DestFormat"> |
|
|
|
@@ -300,7 +299,7 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="NetOutputFormat">网络输出数据类型 </label> |
|
|
|
<label for="NetOutputFormat">{{$.i18n.Tr "repo.modelconvert.netoutputdata"}} </label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<select id="NetOutputFormat" class="ui search dropdown eight wide field" placeholder="" style='width:50%' name="NetOutputFormat"> |
|
|
|
@@ -310,7 +309,7 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline fields"> |
|
|
|
<div class="three wide field right aligned"> |
|
|
|
<label for="Description">任务描述 </label> |
|
|
|
<label for="Description">{{$.i18n.Tr "repo.modelconvert.taskdesc"}} </label> |
|
|
|
</div> |
|
|
|
<div class="twelve wide field"> |
|
|
|
<textarea id="Description" name="Description" rows="1" maxlength="255" placeholder='{{.i18n.Tr "repo.modelarts.train_job.new_place"}}' onchange="this.value=this.value.substring(0, 255)" onkeydown="this.value=this.value.substring(0, 255)" onkeyup="this.value=this.value.substring(0, 256)"></textarea> |
|
|
|
@@ -318,7 +317,7 @@ |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline field"> |
|
|
|
<button id="submitId" name="submitId" type="button" class="ui create_train_job green button" style="position: absolute;margin-left: 150px;"> |
|
|
|
新建任务 |
|
|
|
{{$.i18n.Tr "repo.modelconvert.newtask"}} |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -411,7 +410,7 @@ |
|
|
|
.modal({ |
|
|
|
centered: false, |
|
|
|
onShow:function(){ |
|
|
|
$('#model_header').text("创建模型转换任务") |
|
|
|
$('#model_header').text("{{.i18n.Tr "repo.modelconvert.createtask"}}") |
|
|
|
$('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) |
|
|
|
createModelName() |
|
|
|
loadModelList() |
|
|
|
|