yl4579 commited on
Commit
abd064b
·
verified ·
1 Parent(s): 2ec4961

Update f5_tts/model/utils.py

Browse files
Files changed (1) hide show
  1. f5_tts/model/utils.py +1 -1
f5_tts/model/utils.py CHANGED
@@ -109,7 +109,7 @@ def get_tokenizer(dataset_name, tokenizer: str = "pinyin"):
109
  - if use "byte", set to 256 (unicode byte range)
110
  """
111
  if tokenizer in ["pinyin", "char"]:
112
- tokenizer_path = str(f'/home/yl4579/F5-TTS-diff/F5-TTS-DMD-flow-ds/data/{dataset_name}_{tokenizer}/vocab.txt')
113
 
114
  with open(tokenizer_path, "r", encoding="utf-8") as f:
115
  vocab_char_map = {}
 
109
  - if use "byte", set to 256 (unicode byte range)
110
  """
111
  if tokenizer in ["pinyin", "char"]:
112
+ tokenizer_path = str(f'../../vocab.txt')
113
 
114
  with open(tokenizer_path, "r", encoding="utf-8") as f:
115
  vocab_char_map = {}