Merge pull request #660 from benjamindoron/main

utils_infer.py: Fix pathing issue that prevents importing BigVGAN
This commit is contained in:
Yushen CHEN
2024-12-22 11:07:38 +08:00
committed by GitHub

View File

@@ -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