improve train_log.txt creation
This commit is contained in:
parent
b988694da7
commit
2e0a542f33
@ -50,10 +50,13 @@ func (a *App) OnStartup(ctx context.Context) {
|
|||||||
os.Mkdir(a.exDir+"models", os.ModePerm)
|
os.Mkdir(a.exDir+"models", os.ModePerm)
|
||||||
os.Mkdir(a.exDir+"lora-models", os.ModePerm)
|
os.Mkdir(a.exDir+"lora-models", os.ModePerm)
|
||||||
os.Mkdir(a.exDir+"finetune/json2binidx_tool/data", os.ModePerm)
|
os.Mkdir(a.exDir+"finetune/json2binidx_tool/data", os.ModePerm)
|
||||||
f, err := os.Create(a.exDir + "lora-models/train_log.txt")
|
trainLogPath := a.exDir + "lora-models/train_log.txt"
|
||||||
|
if !a.FileExists(trainLogPath) {
|
||||||
|
f, err := os.Create(trainLogPath)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
f.Close()
|
f.Close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a.downloadLoop()
|
a.downloadLoop()
|
||||||
a.midiLoop()
|
a.midiLoop()
|
||||||
|
Loading…
Reference in New Issue
Block a user