|
|
|
@@ -249,15 +249,13 @@ |
|
|
|
<label>转换后格式</label> |
|
|
|
<span> </span> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
<div class="unite min_title inline field"> |
|
|
|
<label>网络输出数据类型</label> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
|
|
|
|
@@ -377,8 +375,17 @@ |
|
|
|
var ele = window.document.getElementById("SrcEngine"); |
|
|
|
var index=ele.selectedIndex; |
|
|
|
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(){ |
|
|
|
|