add high loss warning
This commit is contained in:
parent
a96d7aef8d
commit
24cc8be085
@ -301,5 +301,6 @@
|
||||
"Start Time": "開始時間",
|
||||
"Content Duration": "内容の長さ",
|
||||
"Please select a MIDI device first": "まずMIDIデバイスを選択してください",
|
||||
"Piano is the main instrument": "ピアノはメインの楽器です"
|
||||
"Piano is the main instrument": "ピアノはメインの楽器です",
|
||||
"Loss is too high, please check the training data, and ensure your gpu driver is up to date.": "Lossが大きすぎます、トレーニングデータを確認し、GPUドライバが最新であることを確認してください。"
|
||||
}
|
@ -301,5 +301,6 @@
|
||||
"Start Time": "开始时间",
|
||||
"Content Duration": "内容时长",
|
||||
"Please select a MIDI device first": "请先选择一个MIDI设备",
|
||||
"Piano is the main instrument": "钢琴为主"
|
||||
"Piano is the main instrument": "钢琴为主",
|
||||
"Loss is too high, please check the training data, and ensure your gpu driver is up to date.": "Loss过高,请检查训练数据,并确保你的显卡驱动是最新的"
|
||||
}
|
@ -66,6 +66,11 @@ const parseLossData = (data: string) => {
|
||||
const loss = parseFloat(lastMatch[8]);
|
||||
commonStore.setChartTitle(`Epoch ${epoch}: ${lastMatch[2]} - ${lastMatch[3]}/${lastMatch[4]} - ${lastMatch[5]}/${lastMatch[6]} - ${lastMatch[7]} Loss=${loss}`);
|
||||
addLossDataToChart(epoch, loss);
|
||||
if (loss > 5)
|
||||
toast(t('Loss is too high, please check the training data, and ensure your gpu driver is up to date.'), {
|
||||
type: 'warning',
|
||||
toastId: 'train_loss_high'
|
||||
});
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user