Codex commited on
Commit ·
c312a97
1
Parent(s): c423c9d
Always refresh training environment before runs
Browse files
app.py
CHANGED
|
@@ -1063,6 +1063,8 @@ def start_training(version=DEFAULT_VERSION, epochs=2, batch_size=1, save_every_e
|
|
| 1063 |
clear_live_log(ctx.sovits_live_log)
|
| 1064 |
try:
|
| 1065 |
yield push(logs, f"当前版本:{ctx.spec.version}({ctx.spec.stability})", ctx.sovits_live_log), None
|
|
|
|
|
|
|
| 1066 |
if not dataset_prepared(ctx):
|
| 1067 |
yield push(logs, f"{ctx.spec.version} 缺少预处理产物,开始自动补齐...", ctx.sovits_live_log), None
|
| 1068 |
for update in prepare_data_steps(logs, version, ctx.sovits_live_log):
|
|
@@ -1096,6 +1098,8 @@ def start_gpt_training(version=DEFAULT_VERSION, epochs=1, batch_size=1, save_eve
|
|
| 1096 |
clear_live_log(ctx.gpt_live_log)
|
| 1097 |
try:
|
| 1098 |
yield push(logs, f"当前版本:{ctx.spec.version}({ctx.spec.stability})", ctx.gpt_live_log), None
|
|
|
|
|
|
|
| 1099 |
if not dataset_prepared(ctx):
|
| 1100 |
yield push(logs, f"{ctx.spec.version} 缺少预处理产物,开始自动补齐...", ctx.gpt_live_log), None
|
| 1101 |
for update in prepare_data_steps(logs, version, ctx.gpt_live_log):
|
|
|
|
| 1063 |
clear_live_log(ctx.sovits_live_log)
|
| 1064 |
try:
|
| 1065 |
yield push(logs, f"当前版本:{ctx.spec.version}({ctx.spec.stability})", ctx.sovits_live_log), None
|
| 1066 |
+
for update in setup_environment_steps(logs, version, ctx.sovits_live_log):
|
| 1067 |
+
yield update, None
|
| 1068 |
if not dataset_prepared(ctx):
|
| 1069 |
yield push(logs, f"{ctx.spec.version} 缺少预处理产物,开始自动补齐...", ctx.sovits_live_log), None
|
| 1070 |
for update in prepare_data_steps(logs, version, ctx.sovits_live_log):
|
|
|
|
| 1098 |
clear_live_log(ctx.gpt_live_log)
|
| 1099 |
try:
|
| 1100 |
yield push(logs, f"当前版本:{ctx.spec.version}({ctx.spec.stability})", ctx.gpt_live_log), None
|
| 1101 |
+
for update in setup_environment_steps(logs, version, ctx.gpt_live_log):
|
| 1102 |
+
yield update, None
|
| 1103 |
if not dataset_prepared(ctx):
|
| 1104 |
yield push(logs, f"{ctx.spec.version} 缺少预处理产物,开始自动补齐...", ctx.gpt_live_log), None
|
| 1105 |
for update in prepare_data_steps(logs, version, ctx.gpt_live_log):
|