Browse Source

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

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

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

@@ -297,10 +297,9 @@
data['ModelFile'] = $('#ModelFile').val();
console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine'] + " ModelFile=" + data['ModelFile']);
console.log("inputshape=" + data['inputshape'] + " inputdataformat=" + data['inputdataformat'] + " DestFormat=" + data['DestFormat'] + " NetOutputFormat=" + data['NetOutputFormat']);
$('.ui.modal.second').modal('hide');
$.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => {
console.log("result=" + result);
$('.ui.modal.second').modal('hide');
if(result.result_code ==0){
window.location.reload();
}
@@ -329,9 +328,14 @@
},
onHide:function(){
document.getElementById("formId").reset();
$('#model_convert_name').val("")
$('#choice_model').dropdown('clear')
$('#choice_version').dropdown('clear')
$('#choice_file').dropdown('clear')
$('#ModelFile').val("")
$('#SrcEngine').dropdown('clear')
$('#DestFormat').dropdown('clear')
$('#NetOutputFormat').dropdown('clear')
$('.ui.dimmer').css({"background-color":""})
$('.ui.error.message').text()
$('.ui.error.message').css('display','none')


Loading…
Cancel
Save