From 2f07dc3cdcbdeaef3631e676bf3b1825b928ba24 Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 7 Jun 2022 17:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_convert.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index 616704af3..904bea36d 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -115,7 +115,7 @@ func createNpuTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context codeObsPath := "/" + setting.Bucket + modelarts.JobPath + modelConvert.ID + modelarts.CodePath outputObsPath := "/" + setting.Bucket + modelarts.JobPath + modelConvert.ID + modelarts.OutputPath + VersionOutputPath + "/" logObsPath := "/" + setting.Bucket + modelarts.JobPath + modelConvert.ID + modelarts.LogPath + VersionOutputPath + "/" - dataPath := modelRelativePath + dataPath := "/" + modelRelativePath _, err := ioutil.ReadDir(codeLocalPath) if err == nil { @@ -150,28 +150,28 @@ func createNpuTrainJob(modelConvert *models.AiModelConvert, ctx *context.Context } param := make([]models.Parameter, 0) modelPara := models.Parameter{ - Label: "--model", + Label: "model", Value: modelConvert.ModelPath, } param = append(param, modelPara) batchSizePara := models.Parameter{ - Label: "--n", + Label: "n", Value: fmt.Sprint(n), } param = append(param, batchSizePara) channelSizePara := models.Parameter{ - Label: "--c", + Label: "c", Value: fmt.Sprint(c), } param = append(param, channelSizePara) heightPara := models.Parameter{ - Label: "--h", + Label: "h", Value: fmt.Sprint(h), } param = append(param, heightPara) widthPara := models.Parameter{ - Label: "--w", + Label: "w", Value: fmt.Sprint(w), } param = append(param, widthPara)