mirror of https://github.com/coqui-ai/TTS.git
Delete unused variables
This commit is contained in:
parent
eb18b27afc
commit
490af290d3
|
@ -153,6 +153,6 @@ def format_audio_list(audio_files, target_language="en", out_path=None, buffer=0
|
|||
df_eval.to_csv(eval_metadata_path, sep="|", index=False)
|
||||
|
||||
# deallocate VRAM
|
||||
del asr_model
|
||||
del asr_model, df_train, df_eval, df, metadata
|
||||
|
||||
return train_metadata_path, eval_metadata_path, audio_total_size
|
|
@ -165,6 +165,6 @@ def train_gpt(language, num_epochs, batch_size, grad_acumm, train_csv, eval_csv,
|
|||
trainer_out_path = trainer.output_path
|
||||
|
||||
# deallocate VRAM
|
||||
del model, trainer
|
||||
del model, trainer, train_samples, eval_samples
|
||||
|
||||
return XTTS_CONFIG_FILE, XTTS_CHECKPOINT, TOKENIZER_FILE, trainer_out_path, speaker_ref
|
||||
|
|
Loading…
Reference in New Issue