Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
9a21221667
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_manage.go

+ 1
- 1
routers/repo/ai_model_manage.go View File

@@ -161,7 +161,7 @@ func downloadModelFromCloudBrainTwo(modelUUID string, jobName string, parentDir
if len(modelDbResult) == 0 {
return "", 0, errors.New("cannot create model, as model is empty.")
}
prefix := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, parentDir), "/")
prefix := strings.TrimPrefix(path.Join(setting.TrainJobModelPath, jobName, setting.OutPutPath, parentDir), "/") + "/"
for _, modelFile := range modelDbResult {
destKeyNamePrefix := "aimodels/" + models.AttachmentRelativePath(modelUUID) + "/"
log.Info("copy file, bucket=" + setting.Bucket + ", src keyname=" + prefix + modelFile.FileName)


Loading…
Cancel
Save