From 91538ab2065d2f7ce68ad06e10561a4887bd6a13 Mon Sep 17 00:00:00 2001 From: Benjamin Doron Date: Sat, 21 Dec 2024 20:52:44 -0500 Subject: [PATCH] utils_infer.py: Fix pathing issue that prevents importing BigVGAN Upwards directory traversal goes after getting the base path. Tested on Linux, using F5-TTS and BigVGAN. Audio is generated. Signed-off-by: Benjamin Doron --- src/f5_tts/infer/utils_infer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/f5_tts/infer/utils_infer.py b/src/f5_tts/infer/utils_infer.py index c64e25c..5f31fe5 100644 --- a/src/f5_tts/infer/utils_infer.py +++ b/src/f5_tts/infer/utils_infer.py @@ -4,7 +4,7 @@ import os import sys os.environ["PYTOCH_ENABLE_MPS_FALLBACK"] = "1" # for MPS device compatibility -sys.path.append(f"../../{os.path.dirname(os.path.abspath(__file__))}/third_party/BigVGAN/") +sys.path.append(f"{os.path.dirname(os.path.abspath(__file__))}/../../third_party/BigVGAN/") import hashlib import re