Browse Source

提交代码。

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

+ 1
- 1
routers/repo/ai_model_convert.go View File

@@ -42,7 +42,7 @@ func SaveModelConvert(ctx *context.Context) {
name := ctx.Query("name")
desc := ctx.Query("desc")
modelId := ctx.Query("modelId")
modelPath := ctx.Query("modelPath")
modelPath := ctx.Query("ModelFile")
SrcEngine := ctx.QueryInt("SrcEngine")
InputShape := ctx.Query("inputshape")
InputDataFormat := ctx.Query("inputdataformat")


+ 5
- 1
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -290,7 +290,8 @@
data['inputdataformat']= $('#inputdataformat').val();
data['DestFormat'] = $('#DestFormat').val();
data['NetOutputFormat']= $('#NetOutputFormat').val();
console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine']);
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');
@@ -338,6 +339,8 @@
$('#choice_version').dropdown('clear')
$('#choice_file').dropdown('clear')
$("#model-version").empty()
$("#model-file").empty()
loadModelVersion(value)
}
})
@@ -377,6 +380,7 @@
function loadModelFile(modelId){
console.log("modelId=" + modelId);
$('#choice_file').dropdown('clear')
$("#model-file").empty()
if(modelId ==null || modelId ==""){
console.log("modelId is null");
}else{


Loading…
Cancel
Save