mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-19 18:41:52 +00:00
Format code (#989)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7293002f53
commit
76b67842ba
@@ -1,5 +1,6 @@
|
||||
import os, sys,pdb
|
||||
os.environ["OMP_NUM_THREADS"]="2"
|
||||
import os, sys, pdb
|
||||
|
||||
os.environ["OMP_NUM_THREADS"] = "2"
|
||||
if sys.platform == "darwin":
|
||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
||||
|
||||
@@ -47,8 +48,9 @@ if __name__ == "__main__":
|
||||
import torchaudio.transforms as tat
|
||||
from i18n import I18nAuto
|
||||
import rvc_for_realtime
|
||||
|
||||
i18n = I18nAuto()
|
||||
device=rvc_for_realtime.config.device
|
||||
device = rvc_for_realtime.config.device
|
||||
# device = torch.device(
|
||||
# "cuda"
|
||||
# if torch.cuda.is_available()
|
||||
@@ -61,7 +63,6 @@ if __name__ == "__main__":
|
||||
for _ in range(n_cpu):
|
||||
Harvest(inp_q, opt_q).start()
|
||||
|
||||
|
||||
class GUIConfig:
|
||||
def __init__(self) -> None:
|
||||
self.pth_path: str = ""
|
||||
|
||||
Reference in New Issue
Block a user