|
|
|
@@ -211,6 +211,11 @@ func GrampusNotebookCreate(ctx *context.Context, form auth.CreateGrampusNotebook |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.dataset_select"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
uuidArray := strings.Split(uuid, ";") |
|
|
|
if datasetInfos == nil || len(datasetInfos) < len(uuidArray) { |
|
|
|
ctx.RenderWithErr(ctx.Tr("cloudbrain.error.partial_datasets_not_available"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//prepare code and out path |
|
|
|
@@ -274,6 +279,12 @@ func GrampusNotebookCreate(ctx *context.Context, form auth.CreateGrampusNotebook |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.modelconvert.manage.model_not_exist"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
if !cloudbrainTask.IsModelFileExists(m, form.CkptName) { |
|
|
|
log.Error("model file not exist.name = %s", form.CkptName) |
|
|
|
grampusNotebookNewDataPrepare(ctx, processType) |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.modelconvert.manage.model_file_not_exist"), tpl, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
req.ModelName = form.ModelName |
|
|
|
req.LabelName = form.LabelName |
|
|
|
req.CkptName = form.CkptName |
|
|
|
@@ -1324,7 +1335,7 @@ func GrampusTrainJobShow(ctx *context.Context) { |
|
|
|
taskList := make([]*models.Cloudbrain, 0) |
|
|
|
taskList = append(taskList, task) |
|
|
|
prepareSpec4Show(ctx, task) |
|
|
|
|
|
|
|
|
|
|
|
ctx.Data["version_list_task"] = taskList |
|
|
|
ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, false) |
|
|
|
ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) |
|
|
|
|