| @@ -249,15 +249,13 @@ | |||||
| <label>转换后格式</label> | <label>转换后格式</label> | ||||
| <span> </span> | <span> </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(){ | ||||