Fix: import error
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from .log import logger
|
from style_bert_vits2.logging import logger
|
||||||
from .stdout_wrapper import SAFE_STDOUT
|
from style_bert_vits2.utils.stdout_wrapper import SAFE_STDOUT
|
||||||
|
|
||||||
python = sys.executable
|
python = sys.executable
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import os
|
|
||||||
import warnings
|
import warnings
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional, Union
|
from typing import Optional, Union
|
||||||
|
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
from gradio.processing_utils import convert_to_16_bit_wav
|
from gradio.processing_utils import convert_to_16_bit_wav
|
||||||
|
|
||||||
@@ -14,7 +12,7 @@ from infer import get_net_g, infer
|
|||||||
from models import SynthesizerTrn
|
from models import SynthesizerTrn
|
||||||
from models_jp_extra import SynthesizerTrn as SynthesizerTrnJPExtra
|
from models_jp_extra import SynthesizerTrn as SynthesizerTrnJPExtra
|
||||||
|
|
||||||
from .constants import (
|
from style_bert_vits2.constants import (
|
||||||
DEFAULT_ASSIST_TEXT_WEIGHT,
|
DEFAULT_ASSIST_TEXT_WEIGHT,
|
||||||
DEFAULT_LENGTH,
|
DEFAULT_LENGTH,
|
||||||
DEFAULT_LINE_SPLIT,
|
DEFAULT_LINE_SPLIT,
|
||||||
@@ -25,7 +23,7 @@ from .constants import (
|
|||||||
DEFAULT_STYLE,
|
DEFAULT_STYLE,
|
||||||
DEFAULT_STYLE_WEIGHT,
|
DEFAULT_STYLE_WEIGHT,
|
||||||
)
|
)
|
||||||
from .log import logger
|
from style_bert_vits2.logging import logger
|
||||||
|
|
||||||
|
|
||||||
def adjust_voice(fs, wave, pitch_scale, intonation_scale):
|
def adjust_voice(fs, wave, pitch_scale, intonation_scale):
|
||||||
|
|||||||
Reference in New Issue
Block a user