|
|
|
@@ -81,6 +81,16 @@ func saveModelByParameters(jobId string, versionName string, name string, versio |
|
|
|
log.Info("download model from CloudBrainOne faild." + err.Error()) |
|
|
|
return err |
|
|
|
} |
|
|
|
} else if cloudType == models.TypeC2Net { |
|
|
|
if aiTask.ComputeResource == models.NPUResource { |
|
|
|
modelPath, modelSize, err = downloadModelFromCloudBrainTwo(id, aiTask.JobName, "", aiTask.TrainUrl, modelSelectedFile) |
|
|
|
if err != nil { |
|
|
|
log.Info("download model from CloudBrainTwo faild." + err.Error()) |
|
|
|
return err |
|
|
|
} |
|
|
|
} else if aiTask.ComputeResource == models.GPUResource { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
accuracy := make(map[string]string) |
|
|
|
accuracy["F1"] = "" |
|
|
|
|