v1.0.8 fix a fatal bug with log_samples since 37eb3b50da

This commit is contained in:
SWivid
2025-03-25 07:49:19 +08:00
parent 3ad3211915
commit b9156c0ad5
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "f5-tts"
version = "1.0.7"
version = "1.0.8"
description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
readme = "README.md"
license = {text = "MIT License"}

View File

@@ -428,6 +428,7 @@ class Trainer:
torchaudio.save(
f"{log_samples_path}/update_{global_update}_ref.wav", ref_audio, target_sample_rate
)
self.model.train()
if global_update % self.last_per_updates == 0 and self.accelerator.sync_gradients:
self.save_checkpoint(global_update, last=True)