SWivid commited on
Commit
572d786
·
1 Parent(s): 076cc03

0.4.4 fix hard coded stdout for finetune-gradio gui

Browse files
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "f5-tts"
7
- version = "0.4.3"
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 = "0.4.4"
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/train/finetune_gradio.py CHANGED
@@ -544,7 +544,7 @@ def start_training(
544
  output = stdout_queue.get_nowait()
545
  print(output, end="")
546
  match = re.search(
547
- r"Epoch (\d+)/(\d+):\s+(\d+)%\|.*\[(\d+:\d+)<.*?loss=(\d+\.\d+), step=(\d+)", output
548
  )
549
  if match:
550
  current_epoch = match.group(1)
@@ -552,13 +552,13 @@ def start_training(
552
  percent_complete = match.group(3)
553
  elapsed_time = match.group(4)
554
  loss = match.group(5)
555
- current_step = match.group(6)
556
  message = (
557
  f"Epoch: {current_epoch}/{total_epochs}, "
558
  f"Progress: {percent_complete}%, "
559
  f"Elapsed Time: {elapsed_time}, "
560
  f"Loss: {loss}, "
561
- f"Step: {current_step}"
562
  )
563
  yield message, gr.update(interactive=False), gr.update(interactive=True)
564
  elif output.strip():
 
544
  output = stdout_queue.get_nowait()
545
  print(output, end="")
546
  match = re.search(
547
+ r"Epoch (\d+)/(\d+):\s+(\d+)%\|.*\[(\d+:\d+)<.*?loss=(\d+\.\d+), update=(\d+)", output
548
  )
549
  if match:
550
  current_epoch = match.group(1)
 
552
  percent_complete = match.group(3)
553
  elapsed_time = match.group(4)
554
  loss = match.group(5)
555
+ current_update = match.group(6)
556
  message = (
557
  f"Epoch: {current_epoch}/{total_epochs}, "
558
  f"Progress: {percent_complete}%, "
559
  f"Elapsed Time: {elapsed_time}, "
560
  f"Loss: {loss}, "
561
+ f"Update: {current_update}"
562
  )
563
  yield message, gr.update(interactive=False), gr.update(interactive=True)
564
  elif output.strip():