Merge pull request '이어하기 수정' (#101) from feat/training_260202 into develop
Reviewed-on: #101
This commit was merged in pull request #101.
This commit is contained in:
@@ -207,13 +207,15 @@ public class TrainJobService {
|
||||
|
||||
try {
|
||||
String ckptFile = Files.readString(last).trim(); // epoch_10.pth
|
||||
log.info("resume ckptFile: {}", ckptFile);
|
||||
if (ckptFile.isEmpty()) return null;
|
||||
|
||||
Path ckptHost = outDir.resolve(ckptFile);
|
||||
log.info("resume ckptHost: {}", ckptHost);
|
||||
if (!Files.isRegularFile(ckptHost)) return null;
|
||||
|
||||
// 컨테이너 경로 반환
|
||||
return "/checkpoints/" + outputFolder + "/" + ckptFile;
|
||||
return responseDir + outputFolder + "/" + ckptFile;
|
||||
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user