|
|
|
@@ -922,7 +922,7 @@ func GrampusTrainJobShow(ctx *context.Context) { |
|
|
|
ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) |
|
|
|
ctx.Data["displayJobName"] = task.DisplayJobName |
|
|
|
|
|
|
|
ctx.Data["ai_center"] = cloudbrainService.GetAiCenterShow(task.AiCenter,ctx) |
|
|
|
ctx.Data["ai_center"] = cloudbrainService.GetAiCenterShow(task.AiCenter, ctx) |
|
|
|
|
|
|
|
ctx.HTML(http.StatusOK, tplGrampusTrainJobShow) |
|
|
|
} |
|
|
|
@@ -1004,7 +1004,7 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo |
|
|
|
//no need to process |
|
|
|
} else if processorType == grampus.ProcessorTypeGPU { |
|
|
|
unZipDatasetCommand := generateDatasetUnzipCommand(datasetName) |
|
|
|
commandUnzip := "cd " + workDir + "code;unzip -q master.zip;echo \"start to unzip dataset\";cd " + workDir + "dataset;" + unZipDatasetCommand |
|
|
|
commandUnzip := "cd " + workDir + "code;unzip -q master.zip;rm -f master.zip;echo \"start to unzip dataset\";cd " + workDir + "dataset;" + unZipDatasetCommand |
|
|
|
command += commandUnzip |
|
|
|
} |
|
|
|
|
|
|
|
|