mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 23:48:48 +08:00
Merge af364358bedea07d7851613bbe9fef2a1b72bb40 into 836bfec1fbf7356d59bd2dbe3883997646554e20
This commit is contained in:
commit
75453e82ba
@ -25,11 +25,9 @@ import torch
|
|||||||
|
|
||||||
infer_ttswebui = os.environ.get("infer_ttswebui", 9872)
|
infer_ttswebui = os.environ.get("infer_ttswebui", 9872)
|
||||||
infer_ttswebui = int(infer_ttswebui)
|
infer_ttswebui = int(infer_ttswebui)
|
||||||
is_share = os.environ.get("is_share", "False")
|
|
||||||
is_share = eval(is_share)
|
|
||||||
if "_CUDA_VISIBLE_DEVICES" in os.environ:
|
if "_CUDA_VISIBLE_DEVICES" in os.environ:
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = os.environ["_CUDA_VISIBLE_DEVICES"]
|
os.environ["CUDA_VISIBLE_DEVICES"] = os.environ["_CUDA_VISIBLE_DEVICES"]
|
||||||
is_half = eval(os.environ.get("is_half", "True")) and torch.cuda.is_available()
|
from config import is_half,is_share
|
||||||
gpt_path = os.environ.get("gpt_path", None)
|
gpt_path = os.environ.get("gpt_path", None)
|
||||||
sovits_path = os.environ.get("sovits_path", None)
|
sovits_path = os.environ.get("sovits_path", None)
|
||||||
cnhubert_base_path = os.environ.get("cnhubert_base_path", None)
|
cnhubert_base_path = os.environ.get("cnhubert_base_path", None)
|
||||||
|
@ -10,7 +10,7 @@ all_parts = os.environ.get("all_parts")
|
|||||||
os.environ["CUDA_VISIBLE_DEVICES"] = os.environ.get("_CUDA_VISIBLE_DEVICES")
|
os.environ["CUDA_VISIBLE_DEVICES"] = os.environ.get("_CUDA_VISIBLE_DEVICES")
|
||||||
opt_dir = os.environ.get("opt_dir")
|
opt_dir = os.environ.get("opt_dir")
|
||||||
bert_pretrained_dir = os.environ.get("bert_pretrained_dir")
|
bert_pretrained_dir = os.environ.get("bert_pretrained_dir")
|
||||||
is_half = eval(os.environ.get("is_half", "True"))
|
from config import is_half
|
||||||
import sys, numpy as np, traceback, pdb
|
import sys, numpy as np, traceback, pdb
|
||||||
import os.path
|
import os.path
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
@ -10,7 +10,7 @@ os.environ["CUDA_VISIBLE_DEVICES"]= os.environ.get("_CUDA_VISIBLE_DEVICES")
|
|||||||
from feature_extractor import cnhubert
|
from feature_extractor import cnhubert
|
||||||
opt_dir= os.environ.get("opt_dir")
|
opt_dir= os.environ.get("opt_dir")
|
||||||
cnhubert.cnhubert_base_path= os.environ.get("cnhubert_base_dir")
|
cnhubert.cnhubert_base_path= os.environ.get("cnhubert_base_dir")
|
||||||
is_half=eval(os.environ.get("is_half","True"))
|
from config import is_half
|
||||||
|
|
||||||
import pdb,traceback,numpy as np,logging
|
import pdb,traceback,numpy as np,logging
|
||||||
from scipy.io import wavfile
|
from scipy.io import wavfile
|
||||||
|
@ -8,7 +8,7 @@ os.environ["CUDA_VISIBLE_DEVICES"] = os.environ.get("_CUDA_VISIBLE_DEVICES")
|
|||||||
opt_dir = os.environ.get("opt_dir")
|
opt_dir = os.environ.get("opt_dir")
|
||||||
pretrained_s2G = os.environ.get("pretrained_s2G")
|
pretrained_s2G = os.environ.get("pretrained_s2G")
|
||||||
s2config_path = os.environ.get("s2config_path")
|
s2config_path = os.environ.get("s2config_path")
|
||||||
is_half = eval(os.environ.get("is_half", "True"))
|
from config import is_half
|
||||||
import math, traceback
|
import math, traceback
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import sys, pdb
|
import sys, pdb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user