|
|
|
@@ -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, "") |
|
|
|
|