Browse Source

提交代码。增加TRT转换后端支持。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
c247d6c43d
1 changed files with 13 additions and 6 deletions
  1. +13
    -6
      templates/repo/modelmanage/convertIndex.tmpl

+ 13
- 6
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -249,15 +249,13 @@
<label>转换后格式</label> <label>转换后格式</label>
<span>&nbsp;&nbsp;</span> <span>&nbsp;&nbsp;</span>
<select id="DestFormat" class="ui search dropdown" placeholder="" style='width:385px;' name="DestFormat"> <select id="DestFormat" class="ui search dropdown" placeholder="" style='width:385px;' name="DestFormat">
<option name="ONNX" value="0">ONNX</option>
<option name="TensorRT" value="1">TensorRT</option>
</select> </select>
</div> </div>
<div class="unite min_title inline field"> <div class="unite min_title inline field">
<label>网络输出数据类型</label> <label>网络输出数据类型</label>
<select id="NetOutputFormat" class="ui search dropdown" placeholder="" style='width:385px' name="NetOutputFormat"> <select id="NetOutputFormat" class="ui search dropdown" placeholder="" style='width:385px' name="NetOutputFormat">
<option name="FP32" value="0">FP32</option>
<option name="FP16" value="1">FP16</option>

</select> </select>
</div> </div>


@@ -377,8 +375,17 @@
var ele = window.document.getElementById("SrcEngine"); var ele = window.document.getElementById("SrcEngine");
var index=ele.selectedIndex; var index=ele.selectedIndex;
var options=ele.options; var options=ele.options;
var value = options[index];
console.log("SrcEngine value=" + value);
var option = options[index];
console.log("SrcEngine value=" + option);

let destFormatHtml = "<option name=\"ONNX\" value=\"0\">ONNX</option>";
let netOutputFormatHtml = "<option name=\"FP32\" value=\"0\">FP32</option>";
if(option.value == 0){
destFormatHtml += "<option name=\"TensorRT\" value=\"1\">TensorRT</option>"
netOutputFormatHtml += "<option name=\"FP16\" value=\"1\">FP16</option>";
}
$('#DestFormat').html(destFormatHtml);
$('#NetOutputFormat').html(netOutputFormatHtml);
} }
function loadModelList(){ function loadModelList(){


Loading…
Cancel
Save