From afa22e930c255683943b25dfd56cce5b4fad25d6 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 17 Jun 2022 17:33:25 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/home.js | 42 +++--------------------------------------- routers/home.go | 26 ++------------------------ 2 files changed, 5 insertions(+), 63 deletions(-) diff --git a/public/home/home.js b/public/home/home.js index 9754de0cb..7343dba0b 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -217,9 +217,9 @@ function refresh3DInfo(record){ //console.log("cloudbrain two line length=" + lines.length); var span = $('.rotation3D__line').find("span")[1]; //console.log(span); - span.innerText =record.RefName; - //$('.rotation3D__line').find("span").eq(1).text(record.RefName) - //lines[1].find("span").text(record.RefName); + if(span != null){ + span.innerText =record.RefName; + } } } @@ -452,48 +452,12 @@ function queryRecommendData(){ displayOrg(json.org); displayRepo(json.repo); displayActivity(json.image); - displayCloudBrain(json.cloudbrain) }, error:function(response) { } }); - - // $.ajax({ - // type:"GET", - // url:"/recommend/repo", - // headers: { - // authorization:token, - // }, - // dataType:"json", - // async:false, - // success:function(json){ - // displayRepo(json); - // }, - // error:function(response) { - // } - // }); - - // $.ajax({ - // type:"GET", - // url:"/recommend/imageinfo", - // headers: { - // authorization:token, - // }, - // dataType:"json", - // async:false, - // success:function(json){ - // displayActivity(json); - // }, - // error:function(response) { - // } - // }); } -function displayCloudBrain(json){ - $('#completed_task').text(json.completed_task); - $('#running_task').text(json.running_task); - $('#wait_task').text(json.wait_task); -} function displayActivity(json){ var activityDiv = document.getElementById("recommendactivity"); diff --git a/routers/home.go b/routers/home.go index ae184a72a..0746fc486 100755 --- a/routers/home.go +++ b/routers/home.go @@ -7,7 +7,6 @@ package routers import ( "bytes" - "fmt" "net/http" "strconv" "strings" @@ -758,15 +757,6 @@ func GetRankUser(index string) ([]map[string]interface{}, error) { return resultOrg, nil } -// func GetImageInfoFromPromote(ctx *context.Context) { -// imageInfo, err := GetImageInfo() -// if err != nil { -// ctx.ServerError("500", err) -// return -// } -// ctx.JSON(200, imageInfo) -// } - func GetUserRankFromPromote(ctx *context.Context) { index := ctx.Params("index") resultUserRank, err := GetRankUser(index) @@ -790,27 +780,15 @@ func RecommendHomeInfo(ctx *context.Context) { if err != nil { log.Info("error." + err.Error()) } - resultCloudBrain, err := getCloudbrainNums() - if err != nil { - log.Info("error." + err.Error()) - } + mapInterface := make(map[string]interface{}) mapInterface["org"] = resultOrg mapInterface["repo"] = resultRepo mapInterface["image"] = resultImage - mapInterface["cloudbrain"] = resultCloudBrain + //mapInterface["cloudbrain"] = resultCloudBrain ctx.JSON(http.StatusOK, mapInterface) } -func getCloudbrainNums() (map[string]string, error) { - result := make(map[string]string) - cloudStatusMap := models.GetAllStatusCloudBrain() - result["completed_task"] = fmt.Sprint(cloudStatusMap["COMPLETED"]) - result["running_task"] = fmt.Sprint(cloudStatusMap["RUNNING"]) - result["wait_task"] = fmt.Sprint(cloudStatusMap["WAITING"]) - return result, nil -} - // func RecommendOrgFromPromote(ctx *context.Context) { // resultOrg, err := GetRecommendOrg() // if err != nil { From 0cd2223e532747e0f18f37ca44eaeaf0e40d3d5f Mon Sep 17 00:00:00 2001 From: liuzx Date: Fri, 17 Jun 2022 17:39:19 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E4=BA=91=E8=84=91=E6=A6=9C=E5=8D=95?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/cloudbrain_static.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/cloudbrain_static.go b/models/cloudbrain_static.go index 27cccf415..03cd7d2bc 100644 --- a/models/cloudbrain_static.go +++ b/models/cloudbrain_static.go @@ -213,7 +213,7 @@ func GetWaittingTop() ([]*CloudbrainInfo, error) { cond = cond.And( builder.Eq{"cloudbrain.status": string(JobWaiting)}, ) - sess.OrderBy("(cloudbrain.start_time-cloudbrain.created_unix) DESC limit 10") + sess.OrderBy("cloudbrain.created_unix ASC limit 10") cloudbrains := make([]*CloudbrainInfo, 0, 10) if err := sess.Table(&Cloudbrain{}).Where(cond). Find(&cloudbrains); err != nil { @@ -228,7 +228,7 @@ func GetRunningTop() ([]*CloudbrainInfo, error) { cond = cond.And( builder.Eq{"cloudbrain.status": string(JobRunning)}, ) - sess.OrderBy("(cloudbrain.end_time-cloudbrain.start_time) DESC limit 10") + sess.OrderBy("cloudbrain.duration DESC limit 10") cloudbrains := make([]*CloudbrainInfo, 0, 10) if err := sess.Table(&Cloudbrain{}).Where(cond). Find(&cloudbrains); err != nil { From 09f66aa74366e8342afb9547eca33ed66288ece4 Mon Sep 17 00:00:00 2001 From: liuzx Date: Fri, 17 Jun 2022 17:42:54 +0800 Subject: [PATCH 03/16] =?UTF-8?q?=E4=BA=91=E8=84=91=E7=9C=8B=E6=9D=BF?= =?UTF-8?q?=E6=A6=82=E8=A7=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/api/v1/repo/cloudbrain_dashboard.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routers/api/v1/repo/cloudbrain_dashboard.go b/routers/api/v1/repo/cloudbrain_dashboard.go index 07298ffdc..2e1c979b7 100644 --- a/routers/api/v1/repo/cloudbrain_dashboard.go +++ b/routers/api/v1/repo/cloudbrain_dashboard.go @@ -121,6 +121,13 @@ func GetAllCloudbrainsOverview(ctx *context.Context) { } } + cloudBrainTypeList := []int{0, 1, 2} + for _, v := range cloudBrainTypeList { + if _, ok := cloudBrainNum[v]; !ok { + cloudBrainNum[v] = 0 + } + } + todayRunningCount := todayStatusResult[string(models.JobRunning)] todayCompletedCount := todayStatusResult[string(models.ModelArtsTrainJobCompleted)] + todayStatusResult[string(models.JobFailed)] + todayStatusResult[string(models.ModelArtsStartFailed)] + todayStatusResult[string(models.JobStopped)] + todayStatusResult[string(models.JobSucceeded)] + todayStatusResult[string(models.ModelArtsTrainJobKilled)] From 2d8f9d3ba5a48dc07d361c3fe91a150ca9947529 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 17 Jun 2022 17:49:35 +0800 Subject: [PATCH 04/16] =?UTF-8?q?=E6=8F=90=E9=AB=98=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E9=80=9F=E5=BA=A6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user.go | 14 +++++++++++++- routers/home.go | 27 +++++++-------------------- services/repository/repository.go | 5 ----- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/models/user.go b/models/user.go index 7d4c8ce34..dd5a6f1d2 100755 --- a/models/user.go +++ b/models/user.go @@ -6,7 +6,6 @@ package models import ( - "code.gitea.io/gitea/modules/blockchain" "container/list" "context" "crypto/md5" @@ -25,6 +24,8 @@ import ( "time" "unicode/utf8" + "code.gitea.io/gitea/modules/blockchain" + "code.gitea.io/gitea/modules/avatar" "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/generate" @@ -1498,6 +1499,17 @@ func GetUsersByIDs(ids []int64) (UserList, error) { return ous, err } +func GetUsersByNames(names []string) (UserList, error) { + ous := make([]*User, 0, len(names)) + if len(names) == 0 { + return ous, nil + } + err := x.In("name", names). + Asc("name"). + Find(&ous) + return ous, err +} + // GetUserIDsByNames returns a slice of ids corresponds to names. func GetUserIDsByNames(names []string, ignoreNonExistent bool) ([]int64, error) { ids := make([]int64, 0, len(names)) diff --git a/routers/home.go b/routers/home.go index 0746fc486..5f62c97be 100755 --- a/routers/home.go +++ b/routers/home.go @@ -672,9 +672,14 @@ func getRecommendOrg() ([]map[string]interface{}, error) { if err != nil { return nil, err } - resultOrg := make([]map[string]interface{}, 0) + names := make([]string, 0) for _, userName := range result { - user, err := models.GetUserByName(userName) + names = append(names, userName) + } + users, _ := models.GetUsersByNames(names) + resultOrg := make([]map[string]interface{}, 0) + for i, _ := range result { + user := users[i] if err == nil { userMap := make(map[string]interface{}) userMap["Name"] = user.Name @@ -789,24 +794,6 @@ func RecommendHomeInfo(ctx *context.Context) { ctx.JSON(http.StatusOK, mapInterface) } -// func RecommendOrgFromPromote(ctx *context.Context) { -// resultOrg, err := GetRecommendOrg() -// if err != nil { -// ctx.ServerError("500", err) -// return -// } -// ctx.JSON(200, resultOrg) -// } - -func RecommendRepoFromPromote(ctx *context.Context) { - result, err := repository.GetRecommendRepoFromPromote("projects") - if err != nil { - ctx.ServerError("500", err) - } else { - ctx.JSON(200, result) - } -} - func HomeTerm(ctx *context.Context) { ctx.HTML(200, tplHomeTerm) } diff --git a/services/repository/repository.go b/services/repository/repository.go index 80518b666..6bf4ab283 100644 --- a/services/repository/repository.go +++ b/services/repository/repository.go @@ -131,11 +131,6 @@ func GetRecommendRepoFromPromote(filename string) ([]map[string]interface{}, err repoMap["ID"] = fmt.Sprint(repo.ID) repoMap["Name"] = repo.Name repoMap["Alias"] = repo.Alias - if repo.RepoType == models.RepoCourse { - //Load creator - repo.GetCreator() - repoMap["Creator"] = repo.Creator - } repoMap["OwnerName"] = repo.OwnerName repoMap["NumStars"] = repo.NumStars From d0124f4fa9997f243dffba9ebd0a7f3e41ccc7b7 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 17 Jun 2022 17:55:26 +0800 Subject: [PATCH 05/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelarts/trainjob/show.tmpl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index f22a2ce56..0facbc43b 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -597,8 +597,12 @@
- + +
+
+ + +
@@ -671,6 +675,14 @@ $('#JobName').val(obj.DisplayJobName).addClass('model_disabled') $('input[name="JobId"]').val(obj.JobID) $('input[name="VersionName"]').val(obj.VersionName).addClass('model_disabled') + if(obj.EngineID ==122){ + $('input[name="Engine_name"]').val("MindSpore").addClass('model_disabled'); + $('input[name="Engine"]').val(2); + } + if(obj.EngineID ==121){ + $('input[name="Engine_name"]').val("TensorFlow").addClass('model_disabled'); + $('input[name="Engine"]').val(1); + } $('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) createModelName() }, From 708fbe03e3e13d838a299cfd1598f3ec263b8fbb Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 09:26:25 +0800 Subject: [PATCH 06/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/home.go | 10 +++++++--- templates/repo/modelarts/trainjob/show.tmpl | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/routers/home.go b/routers/home.go index 430d0c223..f0cb5a667 100755 --- a/routers/home.go +++ b/routers/home.go @@ -679,10 +679,14 @@ func getRecommendOrg() ([]map[string]interface{}, error) { names = append(names, userName) } users, _ := models.GetUsersByNames(names) + userMap := make(map[string]*models.User, 0) + for _, user := range users { + userMap[user.Name] = user + } resultOrg := make([]map[string]interface{}, 0) - for i, _ := range result { - user := users[i] - if err == nil { + for _, userName := range result { + user := userMap[userName] + if user != nil { userMap := make(map[string]interface{}) userMap["Name"] = user.Name userMap["Description"] = user.Description diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 0facbc43b..674e7e859 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -602,7 +602,7 @@
- +
@@ -704,6 +704,8 @@ type: 'POST', data: data, success: function (res) { + $('input[name="Engine_name"]').val(""); + $('input[name="Engine"]').val(""); location.href = `/${userName}/${repoPath}/modelmanage/show_model` $('.ui.modal.second').modal('hide') }, From d72f55a3c42122f407525e9188f857c2f74ff5db Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 09:29:44 +0800 Subject: [PATCH 07/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/home.go b/routers/home.go index f0cb5a667..8829e26f4 100755 --- a/routers/home.go +++ b/routers/home.go @@ -699,7 +699,7 @@ func getRecommendOrg() ([]map[string]interface{}, error) { userMap["NumMembers"] = user.NumMembers resultOrg = append(resultOrg, userMap) } else { - log.Info("query user error," + err.Error()) + log.Info("the user not exist," + userName) } } return resultOrg, nil From 3988538ea4d4cd79b2e55e2d68e5fb16d9412f5a Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 09:43:28 +0800 Subject: [PATCH 08/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/dataset.go | 9 --------- routers/home.go | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/models/dataset.go b/models/dataset.go index 53b63185f..54f89acf8 100755 --- a/models/dataset.go +++ b/models/dataset.go @@ -181,7 +181,6 @@ func SearchDatasetCondition(opts *SearchDatasetOptions) builder.Cond { if len(opts.DatasetIDs) > 0 { subCon := builder.NewCond() subCon = subCon.And(builder.In("dataset.id", opts.DatasetIDs)) - subCon = generateFilterCond(opts, subCon) cond = cond.Or(subCon) } @@ -462,11 +461,3 @@ func GetCollaboratorDatasetIdsByUserID(userID int64) []int64 { Cols("dataset.id").Find(&datasets) return datasets } - -func GetTeamDatasetIdsByUserID(userID int64) []int64 { - var datasets []int64 - _ = x.Table("dataset").Join("INNER", "team_repo", "dataset.repo_id = team_repo.repo_id"). - Join("INNER", "team_user", "team_repo.team_id=team_user.team_id and team_user.uid=?", userID). - Cols("dataset.id").Find(&datasets) - return datasets -} diff --git a/routers/home.go b/routers/home.go index 8829e26f4..1ed5faaa8 100755 --- a/routers/home.go +++ b/routers/home.go @@ -345,9 +345,7 @@ func ExploreDatasets(ctx *context.Context) { var datasetsIds []int64 if ownerID > 0 { - collaboratorDatasetsIds := models.GetCollaboratorDatasetIdsByUserID(ownerID) - teamDatasetsIds := models.GetTeamDatasetIdsByUserID(ownerID) - datasetsIds = append(collaboratorDatasetsIds, teamDatasetsIds...) + datasetsIds = models.GetCollaboratorDatasetIdsByUserID(ownerID) } opts := &models.SearchDatasetOptions{ From fbbea0c3ecc629f5f7dfb75691c8b9a1534a3c95 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 09:46:52 +0800 Subject: [PATCH 09/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/dataset.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/dataset.go b/models/dataset.go index 54f89acf8..b7186ac0b 100755 --- a/models/dataset.go +++ b/models/dataset.go @@ -460,4 +460,5 @@ func GetCollaboratorDatasetIdsByUserID(userID int64) []int64 { _ = x.Table("dataset").Join("INNER", "collaboration", "dataset.repo_id = collaboration.repo_id and collaboration.mode>0 and collaboration.user_id=?", userID). Cols("dataset.id").Find(&datasets) return datasets + } From a983985d4cf8308a29fe154cbef54eba19d371a9 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 10:51:48 +0800 Subject: [PATCH 10/16] =?UTF-8?q?=E5=BD=93=E6=B2=A1=E6=9C=89=E8=AE=AD?= =?UTF-8?q?=E7=BB=83=E4=BB=BB=E5=8A=A1=E6=97=B6=EF=BC=8C=E4=B8=8D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=95=8C=E9=9D=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/index.tmpl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 3a1781064..d951c8e7a 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -266,17 +266,18 @@ $.get(`${repolink}/modelmanage/query_train_job?repoId=${repoId}`, (data) => { const n_length = data.length - let train_html = '' - for (let i = 0; i < n_length; i++) { - train_html += `
${data[i].DisplayJobName}
` - train_html += '
' + if(n_length > 0){ + let train_html = '' + for (let i = 0; i < n_length; i++) { + train_html += `
${data[i].DisplayJobName}
` + train_html += '
' + } + $("#job-name").append(train_html) + $(".ui.dropdown.selection.search.width83").removeClass("loading") + $('#choice_model .default.text').text(data[0].DisplayJobName) + $('#choice_model input[name="JobId"]').val(data[0].JobID) + loadTrainVersion() } - $("#job-name").append(train_html) - $(".ui.dropdown.selection.search.width83").removeClass("loading") - $('#choice_model .default.text').text(data[0].DisplayJobName) - $('#choice_model input[name="JobId"]').val(data[0].JobID) - loadTrainVersion() - }) } function loadTrainVersion(value) { @@ -298,7 +299,6 @@ } $('#choice_version .default.text').text(versionName) $('#choice_version input[name="VersionName"]').val(versionName) - console.log("1111111111"); setEngine(data[0]) } From 8835217a04a67883a1866e1e022c965b4cdac62a Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 20 Jun 2022 11:20:31 +0800 Subject: [PATCH 11/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/index.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index d951c8e7a..d42cf1c86 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -277,6 +277,8 @@ $('#choice_model .default.text').text(data[0].DisplayJobName) $('#choice_model input[name="JobId"]').val(data[0].JobID) loadTrainVersion() + }else{ + $(".ui.dropdown.selection.search.width83").removeClass("loading") } }) } From 4130ddffba9afd7c0b4c8565f6ab6f77ca764d1e Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 20 Jun 2022 11:26:12 +0800 Subject: [PATCH 12/16] fix issue --- templates/repo/modelarts/trainjob/new.tmpl | 506 +++++++++++---------- 1 file changed, 268 insertions(+), 238 deletions(-) diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index cff51c524..9d6a45e83 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -1,67 +1,72 @@ {{template "base/head" .}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
{{template "repo/header" .}} @@ -82,29 +87,41 @@
- + {{.i18n.Tr "cloudbrain.job_name_rule"}}
- - + +
@@ -112,43 +129,45 @@
- - + +
- +
- {{range .engines}} - + {{end}}
- + {{range .engine_versions}} + + {{end}}
@@ -156,41 +175,49 @@
- - {{if .bootFile}} - - {{else}} - - {{end}} - - - - {{.i18n.Tr "cloudbrain.view_sample"}} + + {{if .bootFile}} + + {{else}} + + {{end}} + + + + {{.i18n.Tr "cloudbrain.view_sample"}}
- + {{template "custom/select_dataset_train" .}} - {{.i18n.Tr "cloudbrain.dataset_path_rule"}} + {{.i18n.Tr "cloudbrain.dataset_path_rule"}}
- {{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}} - + {{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}} +
- {{if ne 0 (len .params)}} + {{if ne 0 (len .params)}} {{range $k ,$v := .params}} -
-
- -
-
- -
- - - - +
+
+ +
+
+
+ + + + +
+ {{end}} {{end}} - {{end}}
@@ -199,13 +226,14 @@