Yushen CHEN commited on
Commit
eb84cba
·
unverified ·
2 Parent(s): 194bf1e 7895721

Merge pull request #487 from mame82/issue-480

Browse files
src/f5_tts/train/finetune_gradio.py CHANGED
@@ -44,7 +44,7 @@ last_ema = None
44
 
45
  path_data = str(files("f5_tts").joinpath("../../data"))
46
  path_project_ckpts = str(files("f5_tts").joinpath("../../ckpts"))
47
- file_train = "src/f5_tts/train/finetune_cli.py"
48
 
49
  device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
50
 
@@ -1179,7 +1179,7 @@ def get_random_sample_transcribe(project_name):
1179
  continue
1180
 
1181
  # fixed audio when it is absolute
1182
- file_audio = get_correct_audio_path(sp[0], path_project)
1183
  list_data.append([file_audio, sp[1]])
1184
 
1185
  if list_data == []:
 
44
 
45
  path_data = str(files("f5_tts").joinpath("../../data"))
46
  path_project_ckpts = str(files("f5_tts").joinpath("../../ckpts"))
47
+ file_train = str(files("f5_tts").joinpath("train/finetune_cli.py"))
48
 
49
  device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
50
 
 
1179
  continue
1180
 
1181
  # fixed audio when it is absolute
1182
+ file_audio = get_correct_audio_path(sp[0], os.path.join(path_project, "wavs"))
1183
  list_data.append([file_audio, sp[1]])
1184
 
1185
  if list_data == []: