|
|
|
@@ -121,34 +121,7 @@ function countLabel(){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function display_createdatasetlabel(type){ |
|
|
|
var html=""; |
|
|
|
for (var i=0;i<dataSetTaskData.length;i++){ |
|
|
|
if (i==0){ |
|
|
|
var row = "<option value=\""+dataSetTaskData[i].id+ |
|
|
|
"\" selected=\"\">"+dataSetTaskData[i].task_name+ |
|
|
|
"</option>"; |
|
|
|
if(type == 1){ |
|
|
|
$("#autolabeltaskname").attr({value:dataSetTaskData[i].task_name + "-自动标注"}); |
|
|
|
}else{ |
|
|
|
$("#datasetlabeltaskname").attr({value:dataSetTaskData[i].task_name + "-人工标注"}); |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
var row = "<option value=\""+dataSetTaskData[i].id+ |
|
|
|
"\">"+dataSetTaskData[i].task_name+ |
|
|
|
"</option>"; |
|
|
|
} |
|
|
|
html=html+row; |
|
|
|
} |
|
|
|
console.log(html); |
|
|
|
if(type ==1){ |
|
|
|
document.getElementById('dataset_list_auto').innerHTML=html; |
|
|
|
}else{ |
|
|
|
document.getElementById('dataset_list').innerHTML=html; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setPredictTask(){ |
|
|
|
@@ -187,11 +160,11 @@ function displayModelTask(){ |
|
|
|
for (var i=0;i<modelListData.length;i++){ |
|
|
|
if (i==0){ |
|
|
|
var row = "<option value=\""+modelListData[i].id+ |
|
|
|
"\" selected=\"\">"+modelListData[i].name+ |
|
|
|
"\" selected=\"\">"+modelListData[i].model_name + |
|
|
|
"</option>"; |
|
|
|
}else{ |
|
|
|
var row = "<option value=\""+modelListData[i].id+ |
|
|
|
"\">"+modelListData[i].name+ |
|
|
|
"\">"+modelListData[i].model_name+ |
|
|
|
"</option>"; |
|
|
|
} |
|
|
|
html=html+row; |
|
|
|
@@ -199,8 +172,6 @@ function displayModelTask(){ |
|
|
|
console.log(html); |
|
|
|
|
|
|
|
document.getElementById('model_list').innerHTML=html; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@@ -229,27 +200,13 @@ function dataset_sele_Change(sele){ |
|
|
|
$("#datasetlabeltaskname").attr({value:dataset_listName+"-人工标注"}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function display_createlabel(sindex=-1){ |
|
|
|
var html=""; |
|
|
|
for (var i=0;i<preDictTaskData.length;i++){ |
|
|
|
if (i==sindex){ |
|
|
|
var row = "<option value=\""+preDictTaskData[i].id+ |
|
|
|
"\" selected=\"\">"+preDictTaskData[i].task_name+ |
|
|
|
"</option>"; |
|
|
|
$("#labeltaskname").attr({value:preDictTaskData[i].task_name + "-人工标注"}); |
|
|
|
}else{ |
|
|
|
var row = "<option value=\""+preDictTaskData[i].id+ |
|
|
|
"\">"+preDictTaskData[i].task_name+ |
|
|
|
"</option>"; |
|
|
|
} |
|
|
|
html=html+row; |
|
|
|
} |
|
|
|
console.log(html); |
|
|
|
document.getElementById('pre_predict_task_for_label').innerHTML=html; |
|
|
|
function dataset_auto_sele_Change(sele){ |
|
|
|
var dataset_listName = $('#dataset_list_auto option:selected').text(); |
|
|
|
console.log("select dataset_list_auto =" + dataset_listName); |
|
|
|
$("#autolabeltaskname").attr({value:dataset_listName+"-自动标注"}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var createsucced; |
|
|
|
|
|
|
|
function submit_datasettask(){ |
|
|
|
|