|
|
@@ -220,78 +220,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
{{else if eq .benchmarkMode "aisafety"}} |
|
|
|
<form id="form_id" class="ui form alogrithm_form" action="{{.Link}}?benchmarkMode=alogrithm" method="post"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<input type="hidden" name="action" value="update"> |
|
|
|
<input type="hidden" name="job_type" value="BENCHMARK"> |
|
|
|
<div class="required min_title inline field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.cloudbrain.benchmark.evaluate_scenes"}}</label> |
|
|
|
<div class="ui blue small menu compact selectcloudbrain"> |
|
|
|
<a class="item alogrithm_benchmark" |
|
|
|
href="{{.Link}}?benchmarkMode=alogrithm">{{.i18n.Tr "repo.cloudbrain.benchmark.algorithm"}}</a> |
|
|
|
<a class="item model_benchmark" |
|
|
|
href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a> |
|
|
|
<a class="active item aisafety_benchmark" |
|
|
|
href="{{.RepoLink}}/modelsafety/create_gpu">{{.i18n.Tr "modelsafety.model_security_evaluation"}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<div class="min_title inline field" style="margin-top:-10px;"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;"></label> |
|
|
|
{{template "custom/task_wait_count" .}} |
|
|
|
</div> |
|
|
|
<div class="required min_title inline field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> |
|
|
|
<input style="width: 80%;" name="display_job_name" id="trainjob_job_name" |
|
|
|
placeholder={{.i18n.Tr "repo.modelarts.train_job.job_name"}} value="{{.display_job_name}}" |
|
|
|
tabindex="3" autofocus required maxlength="36"> |
|
|
|
<span class="tooltips" style="display: block;margin-left: 11.5rem;">{{.i18n.Tr "repo.cloudbrain_jobname_err"}}</span> |
|
|
|
</div> |
|
|
|
<div class="min_title inline field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;" |
|
|
|
for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}}</label> |
|
|
|
<textarea style="width: 80%;" id="description" name="description" rows="3" maxlength="254" |
|
|
|
placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}} |
|
|
|
onchange="this.value=this.value.substring(0, 255)" |
|
|
|
onkeydown="this.value=this.value.substring(0, 255)" |
|
|
|
onkeyup="this.value=this.value.substring(0, 255)">{{.description}}</textarea> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div id="images-new-cb"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="required min_title inline field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "cloudbrain.resource_specification"}}</label> |
|
|
|
<select id="__specs__" class="ui search dropdown width48" |
|
|
|
placeholder="{{.i18n.Tr "cloudbrain.select_specification"}}" style='width:385px' ovalue="{{.spec_id}}" |
|
|
|
name="spec_id"> |
|
|
|
</select> |
|
|
|
<span><i class="question circle icon link"></i></span> |
|
|
|
<a href="{{AppSubUrl}}/resource_desc" target="_blank">{{.i18n.Tr "custom.resource_description"}}</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="inline min_title field required"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;">推理程序</label> |
|
|
|
<input disabled="disabled" style="width: 33.5%;" name="test_file" id="test_file" value="test.py" |
|
|
|
tabindex="3" autofocus required maxlength="254"> |
|
|
|
<a id="test_href_id" href="https://openi.pcl.ac.cn/CV_benchmark/CV_reID_benchmark" |
|
|
|
target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="inline unite min_title field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;"></label> |
|
|
|
<button class="ui create_train_job green button {{if eq .NotStopTaskCount 1}}disabled{{end}}"> |
|
|
|
{{.i18n.Tr "repo.cloudbrain.new"}} |
|
|
|
</button> |
|
|
|
<a class="ui button" href="/">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|