diff --git a/templates/custom/select_dataset_train.tmpl b/templates/custom/select_dataset_train.tmpl index 93e99de4f..28fce2490 100644 --- a/templates/custom/select_dataset_train.tmpl +++ b/templates/custom/select_dataset_train.tmpl @@ -9,6 +9,9 @@ {{if .benchmarkMode}}{{.i18n.Tr "repo.modelarts.infer_job.select_model"}}{{else}}{{.i18n.Tr "dataset.select_dataset"}}{{end}} + {{if .benchmarkMode}} + 说明:先使用数据集功能上传模型,然后从数据集列表选模型。 + {{end}} - + {{if not .benchmarkMode}}
@@ -121,6 +124,7 @@
+ {{end}}
let repolink = {{.RepoLink}} - console.log({{$.benchmarkMode}}) let url_href = window.location.pathname.split('create')[0] $(".ui.button").attr('href',url_href) @@ -260,17 +259,6 @@ } } }) - // console.log("==============") - // const params = new URLSearchParams(location.search) - // if(params.get('type')=='model'){ - // console.log(2) - // $('.model_form').css('display','block') - // $('.alogrithm_form').css('display','none') - // }else if(params.get('type')=='alogrithm'){ - // console.log(1) - // $('.model_form').css('display','none') - // $('.alogrithm_form').css('display','block') - // } }) function setChildType(){ let type_id = $('#benchmark_types_id').val(); @@ -295,22 +283,6 @@ document.getElementById("benchmark_child_types_id").innerHTML=html; }) } - - // $('.alogrithm_benchmark').on('click',(e)=>{ - // $('.alogrithm_benchmark').addClass('active') - // $('.model_benchmark').removeClass('active') - // $('.model_form').css('display','none') - // $('.alogrithm_form').css('display','block') - // }) - // $('.model_benchmark').on('click',(e)=>{ - // $('.model_benchmark').addClass('active') - // $('.alogrithm_benchmark').removeClass('active') - // $('.model_form').css('display','block') - // $('.alogrithm_form').css('display','none') - - // }) - - document.onreadystatechange = function() { if (document.readyState === "complete") { if($('input[name=benchmarkMode]').val()==='alogrithm'){ diff --git a/templates/repo/cloudbrain/benchmark/show.tmpl b/templates/repo/cloudbrain/benchmark/show.tmpl index 944719dc7..5b7474ca1 100755 --- a/templates/repo/cloudbrain/benchmark/show.tmpl +++ b/templates/repo/cloudbrain/benchmark/show.tmpl @@ -56,7 +56,7 @@ margin:10px 5px ; } .tab_2_content { - min-height: 360px; + min-height: 425px; margin-left: 10px; } .ac-grid { @@ -250,24 +250,51 @@ td, th {
- - {{$.i18n.Tr "repo.modelarts.train_job.start_time"}} + {{$.i18n.Tr "repo.modelarts.createtime"}}
- {{if not (eq .StartTime 0)}} - {{TimeSinceUnix1 .StartTime}} - {{else}} - {{TimeSinceUnix1 .CreatedUnix}} - {{end}} + {{TimeSinceUnix1 .CreatedUnix}}
+ + + + {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} + + + +
+ {{if not (eq .StartTime 0)}} + {{TimeSinceUnix1 .StartTime}} + {{else}} + -- + {{end}} +
+ + + + + + {{$.i18n.Tr "repo.cloudbrain.time.endtime"}} + + + +
+ {{if not (eq .EndTime 0)}} + {{TimeSinceUnix1 .EndTime}} + {{else}} + -- + {{end}} +
+ + {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}} @@ -292,16 +319,29 @@ td, th { + {{$.i18n.Tr "repo.cloudbrain.benchmark.evaluate_scenes"}} + + + + +
+ {{.BenchmarkType}} +
+ + + + {{$.i18n.Tr "repo.cloudbrain.benchmark.evaluate_type"}}
- {{$.BenchmarkTypeName}} + {{.BenchmarkTypeName}}
+ @@ -319,7 +359,11 @@ td, th {
+ {{if eq .BenchmarkType "Benchmark"}} train.py + {{else}} + -- + {{end}}
@@ -330,7 +374,11 @@ td, th {
+ {{if eq .BenchmarkType "Benchmark"}} test.py + {{else}} + -- + {{end}}
@@ -342,11 +390,25 @@ td, th {
+ {{if .Description}} {{.Description}} + {{else}} + -- + {{end}}
- + + + {{$.i18n.Tr "cloudbrain.gpu_type"}} + + + +
+ {{$.resource_type}} +
+ + {{$.i18n.Tr "repo.modelarts.train_job.standard"}} @@ -358,7 +420,17 @@ td, th { + + + {{$.i18n.Tr "repo.model_manager"}} + + +
+ {{$.datasetname}} +
+ + {{$.i18n.Tr "repo.cloudbrain_creator"}} @@ -371,16 +443,21 @@ td, th { - - {{$.i18n.Tr "repo.cloudbrain.benchmark.evaluate_child_type"}} - - - -
- {{$.BenchmarkChildTypeName}} -
- + + {{$.i18n.Tr "repo.cloudbrain.benchmark.evaluate_child_type"}} + + + +
+ {{if $.BenchmarkChildTypeName}} + {{$.BenchmarkChildTypeName}} + {{else}} + -- + {{end}} +
+ +