|
|
|
@ -24,7 +24,6 @@ from paddle.static import InputSpec
|
|
|
|
|
from timer import timer
|
|
|
|
|
from yacs.config import CfgNode
|
|
|
|
|
|
|
|
|
|
from paddlespeech.s2t.utils.dynamic_import import dynamic_import
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import denorm
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_chunks
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_frontend
|
|
|
|
@ -33,6 +32,7 @@ from paddlespeech.t2s.exps.syn_utils import get_voc_inference
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import model_alias
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import voc_to_static
|
|
|
|
|
from paddlespeech.t2s.utils import str2bool
|
|
|
|
|
from paddlespeech.utils.dynamic_import import dynamic_import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def evaluate(args):
|
|
|
|
@ -212,10 +212,7 @@ def parse_args():
|
|
|
|
|
choices=['fastspeech2_csmsc'],
|
|
|
|
|
help='Choose acoustic model type of tts task.')
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'--am_config',
|
|
|
|
|
type=str,
|
|
|
|
|
default=None,
|
|
|
|
|
help='Config of acoustic model.')
|
|
|
|
|
'--am_config', type=str, default=None, help='Config of acoustic model.')
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'--am_ckpt',
|
|
|
|
|
type=str,
|
|
|
|
@ -245,10 +242,7 @@ def parse_args():
|
|
|
|
|
],
|
|
|
|
|
help='Choose vocoder type of tts task.')
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'--voc_config',
|
|
|
|
|
type=str,
|
|
|
|
|
default=None,
|
|
|
|
|
help='Config of voc.')
|
|
|
|
|
'--voc_config', type=str, default=None, help='Config of voc.')
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
'--voc_ckpt', type=str, default=None, help='Checkpoint file of voc.')
|
|
|
|
|
parser.add_argument(
|
|
|
|
|