Skip to content

Commit

Permalink
Merge pull request #84 from litagin02/main
Browse files Browse the repository at this point in the history
Make save_only_last option available in UI
  • Loading branch information
ddPn08 committed Oct 25, 2023
2 parents c4a12a8 + 959cc71 commit b717428
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/tabs/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def train_all(
save_every_epoch,
save_wav_with_checkpoint,
fp16,
save_only_last,
pre_trained_bottom_model_g,
pre_trained_bottom_model_d,
run_train_index,
Expand Down Expand Up @@ -264,7 +265,7 @@ def train_all(
pre_trained_bottom_model_d,
embedder_name,
int(embedding_output_layer),
False,
save_only_last,
None if len(gpu_ids) > 1 else device,
)

Expand Down Expand Up @@ -380,6 +381,9 @@ def train_all(
fp16 = gr.Checkbox(
label="FP16", value=half_support, disabled=not half_support
)
save_only_last = gr.Checkbox(
label="Save only the latest G and D files", value=False
)
with gr.Row(equal_height=False):
augment = gr.Checkbox(label="Augment", value=False)
augment_from_pretrain = gr.Checkbox(
Expand Down Expand Up @@ -477,6 +481,7 @@ def train_all(
save_every_epoch,
save_wav_with_checkpoint,
fp16,
save_only_last,
pre_trained_generator,
pre_trained_discriminator,
run_train_index,
Expand Down

0 comments on commit b717428

Please sign in to comment.