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