-
+
{{$.i18n.Tr "repo.modelconvert.selectmodelfile"}}
-
+
-
@@ -289,30 +289,30 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -364,9 +364,9 @@
$("#task_name").removeClass("error")
}
- data['desc']= $('#Description').val()
- data['modelId'] = $('#ModelVersion').val()
- data['srcEngine'] = $('#SrcEngine').val();
+ data['desc']= $('#description').val()
+ data['modelId'] = $('#modelVersion').val()
+ data['srcEngine'] = $('#srcEngine').val();
data['inputshape']= $('#inputshape').val();
if(inputshapeNotValid(data['inputshape'])){
@@ -379,9 +379,9 @@
}
data['inputdataformat']= $('#inputdataformat').val();
- data['destFormat'] = $('#DestFormat').val();
- data['netOutputFormat']= $('#NetOutputFormat').val();
- data['modelFile'] = $('#ModelFile').val();
+ data['destFormat'] = $('#destFormat').val();
+ data['netOutputFormat']= $('#netOutputFormat').val();
+ data['modelFile'] = $('#modelFile').val();
if(data['modelFile']==""){
$('.ui.error.message').text("{{.i18n.Tr "repo.modelconvert.modelfileempty"}}")
$('.ui.error.message').css('display','block')
@@ -456,7 +456,7 @@
$('#choice_version').dropdown({
onChange:function(value){
console.log("model version:" + value);
- $('#choice_version input[name="ModelVersion"]').val(value)
+ $('#choice_version input[name="modelVersion"]').val(value)
loadModelFile(value);
}
})
@@ -464,26 +464,26 @@
$('#choice_file').dropdown({
onChange:function(value){
console.log("model file:" + value);
- $('#choice_file input[name="ModelFile"]').val(value)
+ $('#choice_file input[name="modelFile"]').val(value)
}
})
})
function srcEngineChanged(){
- var ele = window.document.getElementById("SrcEngine");
+ var ele = window.document.getElementById("srcEngine");
var index=ele.selectedIndex;
var options=ele.options;
var option = options[index];
- console.log("SrcEngine value=" + option);
+ console.log("srcEngine value=" + option);
let destFormatHtml = "";
let netOutputFormatHtml = "";
if(option==null || option =="undefined" || option.value == 0){
destFormatHtml += ""
netOutputFormatHtml += "";
}
- $('#DestFormat').html(destFormatHtml);
- $('#NetOutputFormat').html(netOutputFormatHtml);
+ $('#destFormat').html(destFormatHtml);
+ $('#netOutputFormat').html(netOutputFormatHtml);
}
function loadModelList(){
@@ -550,25 +550,25 @@
n_length = versionList.length
let train_html=''
for (let i=0;i${versionList[i].Version}
`
+ train_html += `
${versionList[i].version}
`
train_html += '
'
}
$("#model-version").append(train_html)
- $('#choice_version .default.text').text(versionList[0].Version)
- $('#choice_version input[name="ModelVersion"]').val(versionList[0].ID)
- loadModelFile(versionList[0].ID);
+ $('#choice_version .default.text').text(versionList[0].version)
+ $('#choice_version input[name="modelVersion"]').val(versionList[0].id)
+ loadModelFile(versionList[0].id);
}
setEngineValue(value);
}
function setEngineValue(value){
- $('#SrcEngine').dropdown('clear');
+ $('#srcEngine').dropdown('clear');
console.log("setEngineValue value=" + value);
let html = ""
html +="
";
- $('#SrcEngine').html(html);
+ $('#srcEngine').html(html);
srcEngineChanged();
}
function getSelected(engineOption, modelName){