Compare commits
2 Commits
bb5ff7c3cd
...
ee4a06df30
| Author | SHA1 | Date | |
|---|---|---|---|
| ee4a06df30 | |||
| 4da477706f |
@@ -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