Skip to content

Commit

Permalink
fix: update seed extraction function
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Dec 17, 2022
1 parent ca23f43 commit 35a8f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/predictions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getTrainCoefficient = (imagesCount: number) => {
export const extractSeedFromLogs = (logsContent: string) => {
try {
const logLines = logsContent.split("\n");
const seedLine = logLines[0];
const seedLine = logLines[1];
const seedValue = seedLine.split(":")[1].trim();

return seedValue ? Number(seedValue) : undefined;
Expand Down

1 comment on commit 35a8f7b

@vercel
Copy link

@vercel vercel bot commented on 35a8f7b Dec 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.