diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 0fdf698c0..02aa94c39 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -144,7 +144,7 @@ func SaveModel(ctx *context.Context) { func downloadModelFromCloudBrainTwo(modelUUID string, jobName string, parentDir string, trainUrl string) (string, int64, error) { objectkey := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, parentDir), "/") if trainUrl != "" { - objectkey = trainUrl[len(setting.Bucket)+1:] + objectkey = trainUrl[len(setting.Bucket)+2:] } modelDbResult, err := storage.GetOneLevelAllObjectUnderDir(setting.Bucket, objectkey, "")