|
|
@@ -136,7 +136,7 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error { |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Data["attachments"] = attachs |
|
|
|
ctx.Data["command"] = cloudbrain.Command |
|
|
|
ctx.Data["command"] = cloudbrain.GetCloudbrainDebugCommand() |
|
|
|
ctx.Data["code_path"] = cloudbrain.CodeMountPath |
|
|
|
ctx.Data["dataset_path"] = cloudbrain.DataSetMountPath |
|
|
|
ctx.Data["model_path"] = cloudbrain.ModelMountPath |
|
|
@@ -315,7 +315,7 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
command := cloudbrain.Command |
|
|
|
command := cloudbrain.GetCloudbrainDebugCommand() |
|
|
|
if jobType == string(models.JobTypeTrain) { |
|
|
|
tpl = tplCloudBrainTrainJobNew |
|
|
|
commandTrain, err := getTrainJobCommand(form) |
|
|
@@ -2186,7 +2186,7 @@ func ModelBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainForm) |
|
|
|
repo := ctx.Repo.Repository |
|
|
|
|
|
|
|
tpl := tplCloudBrainBenchmarkNew |
|
|
|
command := cloudbrain.Command |
|
|
|
command := cloudbrain.GetCloudbrainDebugCommand() |
|
|
|
|
|
|
|
tasks, err := models.GetCloudbrainsByDisplayJobName(repo.ID, jobType, displayJobName) |
|
|
|
if err == nil { |
|
|
|