Open
Description
Checks
- This template is only for usage issues encountered.
- I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
- I have searched for existing issues, including closed ones, and couldn't find a solution.
- I am using English to submit this issue to facilitate community communication.
Environment Details
Ubuntu 24.04.2 LTS, Python 3.10.18
Steps to Reproduce
- Run the command:
conda create -n f5-tts python=3.10
- Run the command:
conda activate f5-tts
- Run the command:
pip install f5-tts
- Modify line no. 16 to 19 in
eval_librispeech_test_clean.py
code. The modification is as follows:-
sys.path.append('/data0/Senior-Engineer-audio/TTS/F5/F5-TTS/src/f5_tts/model')
#from f5_tts.eval.utils_eval import get_librispeech_test, run_asr_wer, run_sim
from utils_eval import get_librispeech_test, run_asr_wer, run_sim
#rel_path = str(files("f5_tts").joinpath("../../"))
def find_f5_tts(start_path="."):
for root, dirs, files in os.walk(start_path):
if "f5_tts" in dirs:
#print("f5_tts_path:", os.path.join(root, "f5_tts"))
return os.path.abspath(os.path.join(root, "f5_tts"))
return None
f5_tts_path = find_f5_tts()
print("f5_tts_path:", f5_tts_path if f5_tts_path else "Not found.")
rel_path = os.path.abspath(os.path.join(f5_tts_path, "..", ".."))
- Inside f5-tts root run the following command:-
python src/f5_tts/eval/eval_librispeech_test_clean.py --eval_task sim --gen_wav_dir /data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/results/F5TTS_v1_Base_1250000/ls_pc_test_clean/seed0_euler_nfe16_vocos_ss-1_cfg2.0_speed1.0 --librispeech_test_clean_path /data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/data/LibriSpeech/test-clean
✔️ Expected Behavior
No response
❌ Actual Behavior
I am encountering the following error:-
f5_tts_path: /data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/src/f5_tts
100%|███████████████████████████████████| 1127/1127 [00:00<00:00, 153264.40it/s]
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
Using cache found in /home/ubuntu/.cache/torch/hub/s3prl_s3prl_main
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/f5_tts/eval/ecapa_tdnn.py", line 187, in __init__
self.feature_extract = torch.hub.load(local_s3prl_path, feat_type, source="local", config_path=config_path)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 647, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 677, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 115, in _import_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1016, in get_code
File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/.cache/torch/hub/s3prl_s3prl_main/hubconf.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/src/f5_tts/eval/utils_eval.py", line 384, in run_sim
model = ECAPA_TDNN_SMALL(feat_dim=1024, feat_type="wavlm_large", config_path=None)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/f5_tts/eval/ecapa_tdnn.py", line 322, in ECAPA_TDNN_SMALL
return ECAPA_TDNN(
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/f5_tts/eval/ecapa_tdnn.py", line 189, in __init__
self.feature_extract = torch.hub.load("s3prl/s3prl", feat_type)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 647, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 677, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/site-packages/torch/hub.py", line 115, in _import_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1016, in get_code
File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/.cache/torch/hub/s3prl_s3prl_main/hubconf.py'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/src/f5_tts/eval/eval_librispeech_test_clean.py", line 100, in <module>
main()
File "/data0/Senior-Engineer-audio/TTS/F5_trial/F5-TTS/src/f5_tts/eval/eval_librispeech_test_clean.py", line 80, in main
results = pool.map(run_sim, args)
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/multiprocessing/pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/ubuntu/anaconda3/envs/f5-tts/lib/python3.10/multiprocessing/pool.py", line 774, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/.cache/torch/hub/s3prl_s3prl_main/hubconf.py'