-
选择模型
-
@@ -198,6 +197,19 @@
$('input[name="_csrf"]').val(csrf)
var modelData;
+ $('#submitId').click(function(){
+ let name = $("#model_convert_name).val()
+ let desc = $("#Description).val()
+ let modelId = $("#ModelVersion).val()
+ let SrcEngine = $('#SrcEngine').val();
+ let inputshape = $('#inputshape').val();
+ let inputdataformat = $('#inputdataformat').val();
+ let DestFormat = $('#DestFormat').val();
+ let NetOutputFormat = $('#NetOutputFormat').val();
+ console.log("name=" + name + " desc=" + desc + " modelId=" + modelId + " SrcEngine=" + SrcEngine);
+ console.log("inputshape=" + inputshape + " inputdataformat=" + inputdataformat + " DestFormat=" + DestFormat + " NetOutputFormat=" + NetOutputFormat);
+ }
+
function createModelName(){
let repoName = location.pathname.split('/')[2]
let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4)
@@ -237,6 +249,13 @@
loadModelVersion(value)
}
})
+
+ $('#choice_version').dropdown({
+ onChange:function(value){
+ console.log("model version:" + value);
+ $('#choice_version input[name="ModelVersion"]').val(value)
+ }
+ })
})
function loadModelList(){
@@ -252,7 +271,6 @@
$("#model-name").append(train_html)
$(".ui.dropdown.selection.search.width83").removeClass("loading")
$('#choice_model .default.text').text(nameList[0])
- $('#choice_model input[name="ModelName"]').val(nameList[0])
loadModelVersion(nameList[0])
})
}