mrfakename commited on
Commit
75649d6
·
verified ·
1 Parent(s): 4d8374a

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (2) hide show
  1. pyproject.toml +1 -1
  2. src/f5_tts/model/trainer.py +0 -2
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "f5-tts"
7
- version = "1.0.8"
8
  description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
9
  readme = "README.md"
10
  license = {text = "MIT License"}
 
4
 
5
  [project]
6
  name = "f5-tts"
7
+ version = "1.0.7"
8
  description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
9
  readme = "README.md"
10
  license = {text = "MIT License"}
src/f5_tts/model/trainer.py CHANGED
@@ -357,7 +357,6 @@ class Trainer:
357
  )
358
 
359
  for batch in current_dataloader:
360
- print("shitttttttttttttttt", self.model.training)
361
  with self.accelerator.accumulate(self.model):
362
  text_inputs = batch["text"]
363
  mel_spec = batch["mel"].permute(0, 2, 1)
@@ -429,7 +428,6 @@ class Trainer:
429
  torchaudio.save(
430
  f"{log_samples_path}/update_{global_update}_ref.wav", ref_audio, target_sample_rate
431
  )
432
- self.model.train()
433
 
434
  if global_update % self.last_per_updates == 0 and self.accelerator.sync_gradients:
435
  self.save_checkpoint(global_update, last=True)
 
357
  )
358
 
359
  for batch in current_dataloader:
 
360
  with self.accelerator.accumulate(self.model):
361
  text_inputs = batch["text"]
362
  mel_spec = batch["mel"].permute(0, 2, 1)
 
428
  torchaudio.save(
429
  f"{log_samples_path}/update_{global_update}_ref.wav", ref_audio, target_sample_rate
430
  )
 
431
 
432
  if global_update % self.last_per_updates == 0 and self.accelerator.sync_gradients:
433
  self.save_checkpoint(global_update, last=True)